Convert from "print ..." to "print(...)"
[hooke.git] / contrib / upgrade_playlist_0p1.py
index 0e6988c660bee65bb2a96cf9fea0ebcfd4335088..c373f64db131c6abac078f61d9a6a370e6488aa0 100755 (executable)
@@ -77,7 +77,7 @@ class Converter (FilePlaylist):
         >>> p.info
         {u'note': u'An example playlist'}
         >>> for curve in p:
-        ...     print curve.path
+        ...     print(curve.path)
         path/to/curve/one
         path/to/curve/two
         >>> p[-1].info['attr with spaces']
@@ -99,7 +99,7 @@ class Converter (FilePlaylist):
 
 if __name__ == '__main__':
     if len(sys.argv) < 2:
-        print >> sys.stderr, 'usage: upgrade_playlist_0p1.py X.hkp [Y.hkp ...]'
+        sys.stderr.write('usage: upgrade_playlist_0p1.py X.hkp [Y.hkp ...]\n')
         sys.exit(1)
 
     for path in sys.argv[1:]: