summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorCraig Rodrigues <rodrigc@FreeBSD.org>2017-03-10 07:29:20 (GMT)
committerCraig Rodrigues <rodrigc@FreeBSD.org>2017-03-10 07:29:20 (GMT)
commitd3dbe8e9502534149b1ca175c483882f7b4e551d (patch)
treeb55e3956c6add9789c5f2666966b4d62279726ad /test
parent48074f8237304d335e8699f5d544fdfe02eb103c (diff)
downloadSCons-d3dbe8e9502534149b1ca175c483882f7b4e551d.zip
SCons-d3dbe8e9502534149b1ca175c483882f7b4e551d.tar.gz
SCons-d3dbe8e9502534149b1ca175c483882f7b4e551d.tar.bz2
Use print() function to fix py2/3
Diffstat (limited to 'test')
-rw-r--r--test/scons-time/run/config/python.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/scons-time/run/config/python.py b/test/scons-time/run/config/python.py
index 57b732d..2660927 100644
--- a/test/scons-time/run/config/python.py
+++ b/test/scons-time/run/config/python.py
@@ -44,13 +44,14 @@ python = r'%(my_python_py)s'
test.write(my_python_py, """\
#!/usr/bin/env python
+from __future__ import print_function
import sys
profile = ''
for arg in sys.argv[1:]:
if arg.startswith('--profile='):
profile = arg[10:]
break
-print 'my_python.py: %s' % profile
+print('my_python.py: %s' % profile)
""")
os.chmod(my_python_py, 0o755)