diff --git a/SConscript b/SConscript index 7cfab0008..9920721f4 100644 --- a/SConscript +++ b/SConscript @@ -21,9 +21,9 @@ class ourSpawn: data, err = proc.communicate() rv = proc.wait() if rv: - print "=====" - print err - print "=====" + print("=====") + print(err) + print("=====") return rv def SetupSpawn(env): buf = ourSpawn() @@ -137,7 +137,7 @@ if tool: for var in ["CC","CXX","LD","LIBPATH","STRIP"]: if var in os.environ: env[var] = os.environ[var] - print "copying environment variable {0}={1!r}".format(var,os.environ[var]) + print("copying environment variable {0}={1!r}".format(var,os.environ[var])) # variables containing several space separated things for var in ["CFLAGS","CCFLAGS","CXXFLAGS","LINKFLAGS","CPPDEFINES","CPPPATH"]: if var in os.environ: @@ -145,7 +145,7 @@ for var in ["CFLAGS","CCFLAGS","CXXFLAGS","LINKFLAGS","CPPDEFINES","CPPPATH"]: env[var] += SCons.Util.CLVar(os.environ[var]) else: env[var] = SCons.Util.CLVar(os.environ[var]) - print "copying environment variable {0}={1!r}".format(var,os.environ[var]) + print("copying environment variable {0}={1!r}".format(var,os.environ[var])) #Used for intro text / executable name, actual bit flags are only set if the --64bit/--32bit command line args are given def add32bitflags(env): @@ -377,7 +377,7 @@ if GetOption('clean'): try: shutil.rmtree("generated/") except: - print "couldn't remove build/generated/" + print("couldn't remove build/generated/") elif not GetOption('help'): conf = Configure(env) conf.AddTest('CheckFramework', CheckFramework) diff --git a/SConstruct b/SConstruct index 56255fbb8..ef4dda1e0 100644 --- a/SConstruct +++ b/SConstruct @@ -9,14 +9,14 @@ if GetOption('clean'): try: shutil.rmtree(".sconf_temp/") except: - print "couldn't remove .sconf_temp/" + print("couldn't remove .sconf_temp/") try: shutil.rmtree("generated/") except: - print "couldn't remove generated/" + print("couldn't remove generated/") try: os.remove(".sconsign.dblite") except: - print "couldn't remove .sconsign.dblite" + print("couldn't remove .sconsign.dblite")