summaryrefslogtreecommitdiffstats
path: root/QMTest/TestSCons.py
diff options
context:
space:
mode:
Diffstat (limited to 'QMTest/TestSCons.py')
-rw-r--r--QMTest/TestSCons.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/QMTest/TestSCons.py b/QMTest/TestSCons.py
index 72624e6..5d0b4c6 100644
--- a/QMTest/TestSCons.py
+++ b/QMTest/TestSCons.py
@@ -13,7 +13,7 @@ attributes defined in this subclass.
"""
# __COPYRIGHT__
-
+from __future__ import division, print_function
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
@@ -721,7 +721,7 @@ class TestSCons(TestCommon):
home = os.path.normpath('%s/..'%jar)
if os.path.isdir(home):
return home
- print(("Could not determine JAVA_HOME: %s is not a directory" % home))
+ print("Could not determine JAVA_HOME: %s is not a directory" % home)
self.fail_test()
def java_where_jar(self, version=None):
@@ -1013,7 +1013,7 @@ SConscript( sconscript )
raise NoMatch(lastEnd)
return m.end() + lastEnd
try:
- #print len(os.linesep)
+ #print(len(os.linesep))
ls = os.linesep
nols = "("
for i in range(len(ls)):
@@ -1241,7 +1241,7 @@ class TimeSCons(TestSCons):
self.variables = kw.get('variables')
default_calibrate_variables = []
if self.variables is not None:
- for variable, value in list(self.variables.items()):
+ for variable, value in self.variables.items():
value = os.environ.get(variable, value)
try:
value = int(value)
@@ -1297,7 +1297,7 @@ class TimeSCons(TestSCons):
"""
if 'options' not in kw and self.variables:
options = []
- for variable, value in list(self.variables.items()):
+ for variable, value in self.variables.items():
options.append('%s=%s' % (variable, value))
kw['options'] = ' '.join(options)
if self.calibrate:
@@ -1323,7 +1323,7 @@ class TimeSCons(TestSCons):
self.elapsed_time(),
"seconds",
sort=0)
- for name, args in list(stats.items()):
+ for name, args in stats.items():
self.trace(name, trace, **args)
def uptime(self):