diff scripts/convert_old_level @ 589:fca61cd8fc33

Start working towards py3 port
author Neil Muller <drnlmuller@gmail.com>
date Wed, 11 Jan 2023 20:29:36 +0200
parents 8473936c8884
children
line wrap: on
line diff
--- a/scripts/convert_old_level	Wed Mar 18 14:17:46 2020 -0700
+++ b/scripts/convert_old_level	Wed Jan 11 20:29:36 2023 +0200
@@ -5,7 +5,7 @@
 mapfile=sys.argv[1]
 
 if mapfile == 'index.txt':
-    print 'Skipping index.txt'
+    print('Skipping index.txt')
     sys.exit(0)
 
 f=open(mapfile, 'rU')
@@ -13,7 +13,7 @@
 f.close()
 
 if lines[0].strip() == 'Version: 0.2.0':
-    print "%s already converted" % mapfile
+    print("%s already converted" % mapfile)
     sys.exit(0)
 
 out=open(mapfile, 'w')
@@ -25,4 +25,4 @@
 out.write(''.join(lines[3:]))
 out.close()
 
-print 'Converted: %s' % mapfile
+print('Converted: %s' % mapfile)