summaryrefslogtreecommitdiff
path: root/test/SWIG
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2016-05-09 15:41:12 -0700
committerWilliam Deegan <bill@baddogconsulting.com>2016-05-09 15:41:12 -0700
commita0a88903da3d3daf8e48245d8a5e80c9f945c12a (patch)
tree201599c45b0c36695fb9e69491885c540a08a44c /test/SWIG
parent985cfd23c9cfcaeb04eb884511600216380a77fe (diff)
downloadscons-a0a88903da3d3daf8e48245d8a5e80c9f945c12a.tar.gz
Fixed print()'s
Diffstat (limited to 'test/SWIG')
-rw-r--r--test/SWIG/SWIG.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/SWIG/SWIG.py b/test/SWIG/SWIG.py
index d53fa49f..38bdc970 100644
--- a/test/SWIG/SWIG.py
+++ b/test/SWIG/SWIG.py
@@ -48,14 +48,14 @@ for opt, arg in opts:
if opt == '-c': pass
elif opt == '-o': out = arg
elif opt == '-v' and arg == 'ersion':
- print ""
- print "SWIG Version 0.1.2"
- print ""
- print "Compiled with g++ [x86_64-pc-linux-gnu]"
- print ""
- print "Configured options: +pcre"
- print ""
- print "Please see http://www.swig.org for reporting bugs and further information"
+ print("")
+ print("SWIG Version 0.1.2")
+ print("")
+ print("Compiled with g++ [x86_64-pc-linux-gnu]")
+ print("")
+ print("Configured options: +pcre")
+ print("")
+ print("Please see http://www.swig.org for reporting bugs and further information")
sys.exit(0)
infile = open(args[0], 'rb')
outfile = open(out, 'wb')
@@ -68,7 +68,7 @@ sys.exit(0)
test.write('SConstruct', """
env = Environment(tools=['default', 'swig'],
SWIG = [r'%(python)s', 'myswig.py'])
-print env.subst("Using SWIG $SWIGVERSION")
+print(env.subst("Using SWIG $SWIGVERSION"))
env.Program(target = 'test1', source = 'test1.i')
env.CFile(target = 'test2', source = 'test2.i')
env.Clone(SWIGFLAGS = '-c++').Program(target = 'test3', source = 'test3.i')