summaryrefslogtreecommitdiff
path: root/test/explain
diff options
context:
space:
mode:
authorCraig Rodrigues <rodrigc@FreeBSD.org>2017-03-09 22:31:02 -0800
committerCraig Rodrigues <rodrigc@FreeBSD.org>2017-03-09 22:31:02 -0800
commit16384dad39e577b449f575df50b40bc1a7caeba9 (patch)
treeb960bff9777c3445f60bd8779ff9e5357e3cf71f /test/explain
parent49e25ff5806fe1686840c7c80fd49ce0c8f9da87 (diff)
downloadscons-16384dad39e577b449f575df50b40bc1a7caeba9.tar.gz
Use print() function to fix py2/3
Diffstat (limited to 'test/explain')
-rw-r--r--test/explain/save-info.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/explain/save-info.py b/test/explain/save-info.py
index af4c3f58..545f6241 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: