diff options
author | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-03-10 06:31:30 (GMT) |
---|---|---|
committer | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-03-10 06:31:30 (GMT) |
commit | 914e670bb555a3a412253eff57eda9ce6e3e4a3a (patch) | |
tree | ac5345732a02462651ef1b1ac011097db0bb2701 /test/explain/basic.py | |
parent | f286773d5da1c938954131e93f39d3259e14b640 (diff) | |
download | SCons-914e670bb555a3a412253eff57eda9ce6e3e4a3a.zip SCons-914e670bb555a3a412253eff57eda9ce6e3e4a3a.tar.gz SCons-914e670bb555a3a412253eff57eda9ce6e3e4a3a.tar.bz2 |
Use print() function to fix py2/3
Diffstat (limited to 'test/explain/basic.py')
-rw-r--r-- | test/explain/basic.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/explain/basic.py b/test/explain/basic.py index 1072ac4..7079e44 100644 --- a/test/explain/basic.py +++ b/test/explain/basic.py @@ -53,6 +53,8 @@ inc_bbb_k = test.workpath('inc', 'bbb.k') test.write(cat_py, r"""#!/usr/bin/env python +from __future__ import print_function + import sys def process(outfp, infp): @@ -63,7 +65,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: |