summaryrefslogtreecommitdiff
path: root/QMTest
diff options
context:
space:
mode:
authorCraig Rodrigues <rodrigc@FreeBSD.org>2017-03-11 18:46:09 -0800
committerCraig Rodrigues <rodrigc@FreeBSD.org>2017-03-11 18:46:09 -0800
commitc48ebf8c67a83768ab094e9572f0fc69214450ba (patch)
tree462a54045bb7f37948fb4404fed7a33579bc0b07 /QMTest
parente45ba445a1140cfa4d7836f54f2e6b8d9a5c7325 (diff)
downloadscons-c48ebf8c67a83768ab094e9572f0fc69214450ba.tar.gz
When iterating over dict.items(), we do not need a new list.
Diffstat (limited to 'QMTest')
-rw-r--r--QMTest/TestSCons.py6
-rw-r--r--QMTest/scons_tdb.py2
2 files changed, 4 insertions, 4 deletions
diff --git a/QMTest/TestSCons.py b/QMTest/TestSCons.py
index e7175fbf..f75a3ccc 100644
--- a/QMTest/TestSCons.py
+++ b/QMTest/TestSCons.py
@@ -1239,7 +1239,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)
@@ -1295,7 +1295,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:
@@ -1321,7 +1321,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):
diff --git a/QMTest/scons_tdb.py b/QMTest/scons_tdb.py
index f5c0ae51..76c7fe10 100644
--- a/QMTest/scons_tdb.py
+++ b/QMTest/scons_tdb.py
@@ -92,7 +92,7 @@ def get_explicit_arguments(e):
# Determine which subset of the 'arguments' have been set
# explicitly.
explicit_arguments = {}
- for name, field in list(arguments.items()):
+ for name, field in arguments.items():
# Do not record computed fields.
if field.IsComputed():
continue