run-tests: use items() instead of iteritems()
authorAugie Fackler <raf@durin42.com>
Fri, 22 May 2015 21:15:52 -0400
changeset 25261 27600986a0d9
parent 25260 8fa3e995a375
child 25262 5a809deb88e6
run-tests: use items() instead of iteritems() This fixes the python3.5 build. We'll presumably want to build our own helper function or use 2to3 for this on the main source tree, but for run-tests we want a single-source version that works in 2.6 and 3.5.
tests/run-tests.py
--- a/tests/run-tests.py	Thu May 21 14:57:30 2015 -0700
+++ b/tests/run-tests.py	Fri May 22 21:15:52 2015 -0400
@@ -1711,7 +1711,7 @@
                     if e.errno != errno.ENOENT:
                         raise
                     return -1e9 # file does not exist, tell early
-                for kw, mul in slow.iteritems():
+                for kw, mul in slow.items():
                     if kw in f:
                         val *= mul
                 return val