diff options
author | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-03-10 06:33:59 (GMT) |
---|---|---|
committer | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-03-10 06:33:59 (GMT) |
commit | 85e7b4542ee2cf378db46a09e7d0b7a1aca802b7 (patch) | |
tree | 95fc98bd7335f54885a61f551f086dd9d0b243c4 /test/SWIG | |
parent | 914e670bb555a3a412253eff57eda9ce6e3e4a3a (diff) | |
download | SCons-85e7b4542ee2cf378db46a09e7d0b7a1aca802b7.zip SCons-85e7b4542ee2cf378db46a09e7d0b7a1aca802b7.tar.gz SCons-85e7b4542ee2cf378db46a09e7d0b7a1aca802b7.tar.bz2 |
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 304932f..eba3fea 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)) """) |