diff options
author | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-03-10 06:40:59 (GMT) |
---|---|---|
committer | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-03-10 06:40:59 (GMT) |
commit | 201e568bed7c69fcc89229db1ed68be6ff75b3bc (patch) | |
tree | 364f0b203d4e86071c51c2e77576d39e1e2d0bbf /doc/user/output.xml | |
parent | ef2b52bbda4aa2ff98b73d13a0ff32782b25e0fd (diff) | |
download | SCons-201e568bed7c69fcc89229db1ed68be6ff75b3bc.zip SCons-201e568bed7c69fcc89229db1ed68be6ff75b3bc.tar.gz SCons-201e568bed7c69fcc89229db1ed68be6ff75b3bc.tar.bz2 |
Use print() function to fix py2/3
Diffstat (limited to 'doc/user/output.xml')
-rw-r--r-- | doc/user/output.xml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/user/output.xml b/doc/user/output.xml index 78dcca4..ca4707d 100644 --- a/doc/user/output.xml +++ b/doc/user/output.xml @@ -622,7 +622,7 @@ import atexit def print_build_failures(): from SCons.Script import GetBuildFailures for bf in GetBuildFailures(): - print "%s failed: %s" % (bf.node, bf.errstr) + print("%s failed: %s" % (bf.node, bf.errstr)) atexit.register(print_build_failures) </file> </scons_example> @@ -701,10 +701,10 @@ def display_build_status(): Here you could do all kinds of complicated things.""" status, failures_message = build_status() if status == 'failed': - print "FAILED!!!!" # could display alert, ring bell, etc. + print("FAILED!!!!") # could display alert, ring bell, etc. elif status == 'ok': - print "Build succeeded." - print failures_message + print("Build succeeded.") + print(failures_message) atexit.register(display_build_status) </file> |