changeset 849:81d2f5c20ceb

python 3 string compat
author Jeff Hammel <k0scist@gmail.com>
date Sun, 10 Dec 2017 09:49:52 -0800
parents a3ee050ae568
children c44637991a01
files python/mountusb.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/python/mountusb.py	Tue Oct 17 12:05:19 2017 -0700
+++ b/python/mountusb.py	Sun Dec 10 09:49:52 2017 -0800
@@ -23,7 +23,6 @@
 import subprocess
 import sys
 
-string = (str, unicode)
 
 def main(args=sys.argv[1:]):
 
@@ -63,7 +62,7 @@
 
     device = os.path.join('/dev', partition)
     assert os.path.exists(device)
-    print "Device: {}".format(device)
+    print ("Device: {}".format(device))
 
     command = ['sudo', 'mount', device, options.mount_point]
     print (' '.join(command))