diff options
author | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-03-09 23:29:20 -0800 |
---|---|---|
committer | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-03-09 23:29:20 -0800 |
commit | 590412e67b18a0715488f9dc11c7816d29a5a34e (patch) | |
tree | b55e3956c6add9789c5f2666966b4d62279726ad /test/scons-time | |
parent | 3e7623f74cc1e27b746540d256ab241cc3a8c9db (diff) | |
download | scons-590412e67b18a0715488f9dc11c7816d29a5a34e.tar.gz |
Use print() function to fix py2/3
Diffstat (limited to 'test/scons-time')
-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 57b732d8..26609272 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) |