From: Victor Stinner Date: Mon, 25 May 2015 14:30:23 +0000 (+0200) Subject: Don't use dict.iterkeys() X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=065c56de7139a9c83a1cc3d0394367d81e617454;p=openstack-build%2Fcinder-build.git Don't use dict.iterkeys() Replace list(dict.iterkeys()) with list(dict). The call to iterkeys() is useless and the iterkeys() method of dictionaries was removed in Python 3 Change-Id: I16733643d4b92fe8134eec2549bbd679fe75fb9c --- diff --git a/tools/colorizer.py b/tools/colorizer.py index 423e89817..4498d9a5e 100755 --- a/tools/colorizer.py +++ b/tools/colorizer.py @@ -274,7 +274,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()