From d3dbe8e9502534149b1ca175c483882f7b4e551d Mon Sep 17 00:00:00 2001 From: Craig Rodrigues Date: Thu, 9 Mar 2017 23:29:20 -0800 Subject: Use print() function to fix py2/3 --- test/scons-time/run/config/python.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v0.12