diff options
author | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-03-10 07:29:20 (GMT) |
---|---|---|
committer | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-03-10 07:29:20 (GMT) |
commit | d3dbe8e9502534149b1ca175c483882f7b4e551d (patch) | |
tree | b55e3956c6add9789c5f2666966b4d62279726ad /test | |
parent | 48074f8237304d335e8699f5d544fdfe02eb103c (diff) | |
download | SCons-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.py | 3 |
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) |