Merge pull request #26 from dioltas/fix_pycdio_unicode_bug

Convert values returned from pycdio to str (workaround for upstream bug)
This commit is contained in:
thomasvs
2013-03-07 00:19:24 -08:00

View File

@@ -34,7 +34,8 @@ def _listify(listOrString):
def getAllDevicePaths():
try:
return _getAllDevicePathsPyCdio()
# see https://savannah.gnu.org/bugs/index.php?38477
return [str(dev) for dev in _getAllDevicePathsPyCdio()]
except ImportError:
log.info('drive', 'Cannot import pycdio')
return _getAllDevicePathsStatic()