Parenthesize SCons message() call to print

When print_function is imported (or Python 3 is used), print without
parentheses is an error.  Historically, SCons has used only Python 2 and
has not enabled print_function.  This may change, so add parentheses to
the one affected site.  None of the print_function features are used, so
this should work in both Python 2 and Python 3.
This commit is contained in:
Kp 2017-10-07 00:54:55 +00:00
parent 8291391b7f
commit af863fdef7

View file

@ -14,7 +14,7 @@ import SCons.Util
SCons.Defaults.DefaultEnvironment(tools = [])
def message(program,msg):
print "%s: %s" % (program.program_message_prefix, msg)
print("%s: %s" % (program.program_message_prefix, msg))
def get_Werror_string(l):
if l and '-Werror' in l: