summaryrefslogtreecommitdiffstats
path: root/test/SWIG/SWIG.py
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2016-05-23 23:21:26 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2016-05-23 23:21:26 (GMT)
commitaa5a0468340338cc3423a06d6d55e1b52a713bc5 (patch)
tree71ff4e88b1e418ff32ba89ae0f4cf0b3f0d180a1 /test/SWIG/SWIG.py
parent15bd909b178ba5271125fca6846fa8c069be79f1 (diff)
parentb387e34357c968d0855c525c7e838657a957ff01 (diff)
downloadSCons-aa5a0468340338cc3423a06d6d55e1b52a713bc5.zip
SCons-aa5a0468340338cc3423a06d6d55e1b52a713bc5.tar.gz
SCons-aa5a0468340338cc3423a06d6d55e1b52a713bc5.tar.bz2
merge python3 branch to default
Diffstat (limited to 'test/SWIG/SWIG.py')
-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 d53fa49..38bdc97 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')