1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

PY3: make sure print stmt is enclosed by '(' & ')'

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Noel Power 2018-07-27 14:37:29 +01:00 committed by Andrew Bartlett
parent c3211c8e59
commit 2e59a3343f
8 changed files with 14 additions and 14 deletions

View 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,

View File

@ -1139,7 +1139,7 @@ def autotest(ctx):
def show_version(ctx):
print get_version_string()
print(get_version_string())
def manpages(ctx):

View File

@ -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)

View 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])

View 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])

View 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))

View 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"

View 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])