diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-03-13 14:56:49 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-03-13 14:56:49 (GMT) |
commit | 9d977ce28597968f92929d708d56b10a58a35041 (patch) | |
tree | 460a8f64c3d54e14d24abf193255a731a28ceb80 /QMTest | |
parent | 2612afc1f93b213cd577429970d32cce73caae8b (diff) | |
parent | 056622b43309af38e4b6dcbbdcdd0e7b9b176a0d (diff) | |
download | SCons-9d977ce28597968f92929d708d56b10a58a35041.zip SCons-9d977ce28597968f92929d708d56b10a58a35041.tar.gz SCons-9d977ce28597968f92929d708d56b10a58a35041.tar.bz2 |
Merged in rodrigc/scons (pull request #410)
When iterating over dict.items(), we do not need a new list.
Diffstat (limited to 'QMTest')
-rw-r--r-- | QMTest/TestSCons.py | 6 | ||||
-rw-r--r-- | QMTest/scons_tdb.py | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/QMTest/TestSCons.py b/QMTest/TestSCons.py index e7175fb..f75a3cc 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 f5c0ae5..76c7fe1 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 |