summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Rodrigues <rodrigc@FreeBSD.org>2017-03-10 06:38:50 (GMT)
committerCraig Rodrigues <rodrigc@FreeBSD.org>2017-03-10 06:38:50 (GMT)
commitef2b52bbda4aa2ff98b73d13a0ff32782b25e0fd (patch)
tree7e00e70c6435463f0e2bebb2db5ea31b1eb3f31f
parent390c4c431abef8b0809a3c30ec07dc6900cb32ce (diff)
downloadSCons-ef2b52bbda4aa2ff98b73d13a0ff32782b25e0fd.zip
SCons-ef2b52bbda4aa2ff98b73d13a0ff32782b25e0fd.tar.gz
SCons-ef2b52bbda4aa2ff98b73d13a0ff32782b25e0fd.tar.bz2
Use print() function to fix py2/3
-rwxr-xr-xruntest.py4
-rw-r--r--src/engine/SCons/Platform/posix.py2
-rw-r--r--src/engine/SCons/Tool/FortranCommon.py6
-rw-r--r--src/engine/SCons/cpp.py6
4 files changed, 9 insertions, 9 deletions
diff --git a/runtest.py b/runtest.py
index d0de6d1..ae456a2 100755
--- a/runtest.py
+++ b/runtest.py
@@ -210,8 +210,8 @@ parser.add_option('--xml',
help="Save results to file in SCons XML format.")
(options, args) = parser.parse_args()
-#print "options:", options
-#print "args:", args
+#print("options:", options)
+#print("args:", args)
opts, args = getopt.getopt(args, "b:def:hj:klnP:p:qsv:Xx:t",
diff --git a/src/engine/SCons/Platform/posix.py b/src/engine/SCons/Platform/posix.py
index 190a2a6..8db08db 100644
--- a/src/engine/SCons/Platform/posix.py
+++ b/src/engine/SCons/Platform/posix.py
@@ -56,7 +56,7 @@ def escape(arg):
for c in special:
arg = arg.replace(c, slash+c)
- # print "ESCAPE RESULT: %s"%arg
+ # print("ESCAPE RESULT: %s" % arg)
return '"' + arg + '"'
diff --git a/src/engine/SCons/Tool/FortranCommon.py b/src/engine/SCons/Tool/FortranCommon.py
index e450730..ec409c0 100644
--- a/src/engine/SCons/Tool/FortranCommon.py
+++ b/src/engine/SCons/Tool/FortranCommon.py
@@ -207,7 +207,7 @@ def add_f90_to_env(env):
except KeyError:
F90Suffixes = ['.f90']
- #print "Adding %s to f90 suffixes" % F90Suffixes
+ #print("Adding %s to f90 suffixes" % F90Suffixes)
try:
F90PPSuffixes = env['F90PPFILESUFFIXES']
except KeyError:
@@ -223,7 +223,7 @@ def add_f95_to_env(env):
except KeyError:
F95Suffixes = ['.f95']
- #print "Adding %s to f95 suffixes" % F95Suffixes
+ #print("Adding %s to f95 suffixes" % F95Suffixes)
try:
F95PPSuffixes = env['F95PPFILESUFFIXES']
except KeyError:
@@ -239,7 +239,7 @@ def add_f03_to_env(env):
except KeyError:
F03Suffixes = ['.f03']
- #print "Adding %s to f95 suffixes" % F95Suffixes
+ #print("Adding %s to f95 suffixes" % F95Suffixes)
try:
F03PPSuffixes = env['F03PPFILESUFFIXES']
except KeyError:
diff --git a/src/engine/SCons/cpp.py b/src/engine/SCons/cpp.py
index 18f154a..8212cc1 100644
--- a/src/engine/SCons/cpp.py
+++ b/src/engine/SCons/cpp.py
@@ -312,7 +312,7 @@ class PreProcessor(object):
t = self.tuples.pop(0)
# Uncomment to see the list of tuples being processed (e.g.,
# to validate the CPP lines are being translated correctly).
- #print t
+ #print(t)
self.dispatch_table[t[0]](t)
return self.finalize_result(fname)
@@ -510,7 +510,7 @@ class PreProcessor(object):
t = self.resolve_include(t)
include_file = self.find_include_file(t)
if include_file:
- #print "include_file =", include_file
+ #print("include_file =", include_file)
self.result.append(include_file)
contents = self.read_file(include_file)
new_tuples = [('scons_current_file', include_file)] + \
@@ -547,7 +547,7 @@ class PreProcessor(object):
"""
s = t[1]
while not s[0] in '<"':
- #print "s =", s
+ #print("s =", s)
try:
s = self.cpp_namespace[s]
except KeyError: