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:
parent
8291391b7f
commit
af863fdef7
|
@ -14,7 +14,7 @@ import SCons.Util
|
||||||
SCons.Defaults.DefaultEnvironment(tools = [])
|
SCons.Defaults.DefaultEnvironment(tools = [])
|
||||||
|
|
||||||
def message(program,msg):
|
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):
|
def get_Werror_string(l):
|
||||||
if l and '-Werror' in l:
|
if l and '-Werror' in l:
|
||||||
|
|
Loading…
Reference in a new issue