diff options
author | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-03-09 22:33:59 -0800 |
---|---|---|
committer | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-03-09 22:33:59 -0800 |
commit | 22715e97d115b96ace812df6697138da29b58e5a (patch) | |
tree | 95fc98bd7335f54885a61f551f086dd9d0b243c4 /test/SWIG | |
parent | 2358bf0c3ba23e545975b8002c7b0333165c2ddb (diff) | |
download | scons-22715e97d115b96ace812df6697138da29b58e5a.tar.gz |
Use print() function to fix py2/3
Diffstat (limited to 'test/SWIG')
-rw-r--r-- | test/SWIG/build-dir.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/SWIG/build-dir.py b/test/SWIG/build-dir.py index 304932f7..eba3fead 100644 --- a/test/SWIG/build-dir.py +++ b/test/SWIG/build-dir.py @@ -145,11 +145,13 @@ public: test.write(['source', 'test.py'], """\ #!/usr/bin/env python +from __future__ import print_function + import linalg x = linalg.Vector(5) -print x +print(x) x[1] = 99.5 x[3] = 8.3 @@ -157,7 +159,7 @@ x[4] = 11.1 for i, v in enumerate(x): - print "\tx[%d] = %g" % (i, v) + print("\tx[%d] = %g" % (i, v)) """) |