From 35f568181ffe653d0619ca3e43c12b5662df1be6 Mon Sep 17 00:00:00 2001 From: dioltas Date: Wed, 6 Mar 2013 19:12:03 +0000 Subject: [PATCH] Convert values returned from pycdio to str (workaround for upstream bug) --- morituri/common/drive.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/morituri/common/drive.py b/morituri/common/drive.py index 80c3de6..a206ac0 100644 --- a/morituri/common/drive.py +++ b/morituri/common/drive.py @@ -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()