In Python 3 print is a function

This commit is contained in:
JoeLametta
2018-05-02 08:00:00 +00:00
parent 37fd1c6bb2
commit 44ece38740
12 changed files with 36 additions and 36 deletions

View File

@@ -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)