In Python 3 print is a function
This commit is contained in:
@@ -384,7 +384,7 @@ class ReadTrackTask(task.Task):
|
||||
|
||||
if not self.exception and self._popen.returncode != 0:
|
||||
if self._errors:
|
||||
print "\n".join(self._errors)
|
||||
print("\n".join(self._errors))
|
||||
else:
|
||||
logger.warning('exit code %r', self._popen.returncode)
|
||||
self.exception = ReturnCodeError(self._popen.returncode)
|
||||
@@ -549,7 +549,7 @@ class ReadVerifyTrackTask(task.MultiSeparateTask):
|
||||
else:
|
||||
logger.debug('stop: exception %r', self.exception)
|
||||
except Exception, e:
|
||||
print 'WARNING: unhandled exception %r' % (e, )
|
||||
print('WARNING: unhandled exception %r' % (e, ))
|
||||
|
||||
task.MultiSeparateTask.stop(self)
|
||||
|
||||
|
||||
@@ -31,5 +31,5 @@ def unmount_device(device):
|
||||
logger.debug('possibly unmount real path %r' % device)
|
||||
proc = open('/proc/mounts').read()
|
||||
if device in proc:
|
||||
print 'Device %s is mounted, unmounting' % device
|
||||
print('Device %s is mounted, unmounting' % device)
|
||||
os.system('umount %s' % device)
|
||||
|
||||
Reference in New Issue
Block a user