PY3: make sure print stmt is enclosed by '(' & ')'
[amitay/samba.git] / source4 / heimdal / lib / wind / gen-errorlist.py
index 29ab9a4bb6b5ff67d62296ba95740c9d95ca9b6f..97646cf5aed695989bf6f274741c920f1d314ab3 100644 (file)
@@ -44,7 +44,7 @@ import rfc4518
 import stringprep
 
 if len(sys.argv) != 3:
-    print "usage: %s rfc3454.txt out-dir" % sys.argv[0]
+    print("usage: %s rfc3454.txt out-dir" % sys.argv[0])
     sys.exit(1)
 
 tables = rfc3454.read(sys.argv[1])
@@ -104,7 +104,7 @@ for x in trans:
     (start, length, description, tables) = x
     symbols = stringprep.symbols(error_list, tables)
     if len(symbols) == 0:
-        print "no symbol for %s" % description
+        print("no symbol for %s" % description)
         sys.exit(1)
     errorlist_c.file.write("  {0x%x, 0x%x, %s}, /* %s: %s */\n"
                 % (start, length, symbols, ",".join(tables), description))