From 065c56de7139a9c83a1cc3d0394367d81e617454 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 25 May 2015 16:30:23 +0200 Subject: [PATCH] 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 --- tools/colorizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/colorizer.py b/tools/colorizer.py index 423e89817e7..4498d9a5e83 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()