PY3: make sure print stmt is enclosed by '(' & ')'
authorNoel Power <noel.power@suse.com>
Fri, 27 Jul 2018 13:37:29 +0000 (14:37 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 19 Sep 2018 20:25:05 +0000 (22:25 +0200)
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
buildtools/wafsamba/samba_conftests.py
ctdb/wscript
selftest/format-subunit
source4/heimdal/lib/wind/gen-bidi.py
source4/heimdal/lib/wind/gen-combining.py
source4/heimdal/lib/wind/gen-errorlist.py
source4/heimdal/lib/wind/gen-map.py
source4/heimdal/lib/wind/gen-normalize.py

index 5af57e24e315c719f8bcdcea02c08264f8542abb..4981ff55637049a7802f4c28a44df8bb353a046c 100644 (file)
@@ -493,8 +493,8 @@ def CHECK_XSLTPROC_MANPAGES(conf):
                              define='XSLTPROC_MANPAGES', on_target=False,
                              boolean=True)
     if not conf.CONFIG_SET('XSLTPROC_MANPAGES'):
-        print "A local copy of the docbook.xsl wasn't found on your system" \
-              " consider installing package like docbook-xsl"
+        print("A local copy of the docbook.xsl wasn't found on your system" \
+              " consider installing package like docbook-xsl")
 
 #
 # Determine the standard libpath for the used compiler,
index e2e964a397fd411091874148225ecfa10a9e080a..1954f19fa2683fdcf6795b1551eef72758022e37 100644 (file)
@@ -1139,7 +1139,7 @@ def autotest(ctx):
 
 
 def show_version(ctx):
-    print get_version_string()
+    print(get_version_string())
 
 
 def manpages(ctx):
index 2506f97c6450e2f86a2d72e93687b0bc9f1153fc..9538ce19e9a1339a38608cfccdaaa9fd3289118c 100755 (executable)
@@ -46,7 +46,7 @@ summaryfile = os.path.join(opts.prefix, "summary")
 
 msg_ops.write_summary(summaryfile)
 
-print "\nA summary with detailed information can be found in:"
-print "  %s" % summaryfile
+print("\nA summary with detailed information can be found in:")
+print("  %s" % summaryfile)
 
 sys.exit(expected_ret)
index 21839c2550b2f0c52d36b944fc0a997990290e4d..e2efcbb555a20412454b8978f514010464fe3bab 100644 (file)
@@ -42,7 +42,7 @@ import generate
 import rfc3454
 
 if len(sys.argv) != 3:
-    print "usage: %s rfc3454.txt outdir" % sys.argv[0]
+    print("usage: %s rfc3454.txt outdir" % sys.argv[0])
     sys.exit(1)
 
 tables = rfc3454.read(sys.argv[1])
index 6f23af8efb3b432ed067bd9290d97f71fcd41c8d..43e0d52eb3cfab1b00960a082d50d5357cee9ea5 100644 (file)
@@ -42,7 +42,7 @@ import generate
 import UnicodeData
 
 if len(sys.argv) != 3:
-    print "usage: %s UnicodeData.txt out-dir" % sys.argv[0]
+    print("usage: %s UnicodeData.txt out-dir" % sys.argv[0])
     sys.exit(1)
 
 ud = UnicodeData.read(sys.argv[1])
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))
index f10973534c1034a8934b69a5a3a8bee30520a4a0..dc10d6fae7f646e97eaa6c4c2837dc49ae5f6631 100644 (file)
@@ -45,7 +45,7 @@ import stringprep
 import util
 
 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])
@@ -114,7 +114,7 @@ trans = stringprep.sort_merge_trans(trans)
 
 for x in trans:
     if x[0] == 0xad:
-        print "fooresult %s" % ",".join(x[3])
+        print("fooresult %s" % ",".join(x[3]))
 
 for x in trans:
     (key, value, description, table) = x
@@ -130,7 +130,7 @@ for x in trans:
     (key, value, description, tables) = x
     symbols = stringprep.symbols(map_list, tables)
     if len(symbols) == 0:
-        print "no symbol for %s %s (%s)" % (key, description, tables)
+        print("no symbol for %s %s (%s)" % (key, description, tables))
         sys.exit(1)
     v = value.split()
     map_c.file.write("  {0x%x, %u, %u, %s}, /* %s: %s */\n"
index 0955a54b95a5abda454eb8e1b0e093cd1c0696f3..daf3c3dc42f1bb2529adb510dc96734ad0c7f511 100644 (file)
@@ -43,8 +43,8 @@ import UnicodeData
 import util
 
 if len(sys.argv) != 4:
-    print "usage: %s UnicodeData.txt"
-    " CompositionExclusions-3.2.0.txt out-dir" % sys.argv[0]
+    print("usage: %s UnicodeData.txt"
+    " CompositionExclusions-3.2.0.txt out-dir" % sys.argv[0])
     sys.exit(1)
 
 ud = UnicodeData.read(sys.argv[1])