diff options
author | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-03-10 06:31:02 (GMT) |
---|---|---|
committer | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-03-10 06:31:02 (GMT) |
commit | f286773d5da1c938954131e93f39d3259e14b640 (patch) | |
tree | b960bff9777c3445f60bd8779ff9e5357e3cf71f /test/explain | |
parent | b4a807726365f963db3c5b0f0ba8b459c40a64d2 (diff) | |
download | SCons-f286773d5da1c938954131e93f39d3259e14b640.zip SCons-f286773d5da1c938954131e93f39d3259e14b640.tar.gz SCons-f286773d5da1c938954131e93f39d3259e14b640.tar.bz2 |
Use print() function to fix py2/3
Diffstat (limited to 'test/explain')
-rw-r--r-- | test/explain/save-info.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/explain/save-info.py b/test/explain/save-info.py index af4c3f5..545f624 100644 --- a/test/explain/save-info.py +++ b/test/explain/save-info.py @@ -42,6 +42,8 @@ inc_ddd = test.workpath('inc', 'ddd') inc_eee = test.workpath('inc', 'eee') test.write(cat_py, r""" +from __future__ import print_function + import sys def process(outfp, infp): @@ -52,7 +54,7 @@ def process(outfp, infp): fp = open(file, 'rb') except IOError: import os - print "os.getcwd() =", os.getcwd() + print("os.getcwd() =", os.getcwd()) raise process(outfp, fp) else: |