Fix python scripts for python 3 (print now a function rather than a keyword)

This commit is contained in:
Martin Moene
2014-03-08 11:31:38 +01:00
parent 91ea20c4cc
commit 77c9edfcdb
3 changed files with 20 additions and 14 deletions

View File

@@ -1,3 +1,5 @@
from __future__ import print_function
import os
import sys
import re
@@ -33,9 +35,9 @@ for arg in sys.argv[1:]:
elif arg == "noimpl":
includeImpl = False
bumpVersion = False
print "Not including impl code (and not bumping version)"
print( "Not including impl code (and not bumping version)" )
else:
print "\n** Unrecognised argument: " + arg + " **\n"
print( "\n** Unrecognised argument: " + arg + " **\n" )
exit(1)
out = open( outputPath, 'w' )
@@ -144,9 +146,9 @@ def generateSingleInclude():
out.write( " */\n" )
out.write( "#ifndef TWOBLUECUBES_SINGLE_INCLUDE_CATCH_HPP_INCLUDED\n" )
out.write( "#define TWOBLUECUBES_SINGLE_INCLUDE_CATCH_HPP_INCLUDED\n" )
parseFile( rootPath, 'catch.hpp' )
out.write( "#endif // TWOBLUECUBES_SINGLE_INCLUDE_CATCH_HPP_INCLUDED\n\n" )
generateSingleInclude()