diff options
author | Victor Stinner <vstinner@redhat.com> | 2015-05-21 14:51:18 -0700 |
---|---|---|
committer | Victor Stinner <vstinner@redhat.com> | 2015-05-21 14:52:53 -0700 |
commit | 51f443ec4eea504c69b459ed5ddcfffefb913d6c (patch) | |
tree | a54fc9ea0bf11b21ea37973f2640003b933fa777 /tools | |
parent | e9c8dfc6b3a8a8cfc390936c6247caa8f06d2c66 (diff) | |
download | nova-51f443ec4eea504c69b459ed5ddcfffefb913d6c.tar.gz |
Don't use dict.iterkeys()
Iterating on a dictionary iterators on its keys, so calling its
iterkeys() method is not needed.
Moreover, the dict.iterkeys() method is gone in Python 3. This change
makes the modified code compatible with Python 3.
Blueprint nova-python3
Change-Id: I140f499d2054bb7d5486e4c61a2f886be6649cbb
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/colorizer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/colorizer.py b/tools/colorizer.py index 5f97e1979e..d1220f705d 100755 --- a/tools/colorizer.py +++ b/tools/colorizer.py @@ -268,7 +268,7 @@ class NovaTestResult(testtools.TestResult): self.stopTestRun() def stopTestRun(self): - for cls in list(self.results.iterkeys()): + for cls in list(self.results): self.writeTestCase(cls) self.stream.writeln() self.writeSlowTests() |