# HG changeset patch # User Augie Fackler # Date 2015-05-23 01:15:52 # Node ID 27600986a0d914fffcf61bdb914140b0e2b4d567 # Parent 8fa3e995a375244068194c65afea6ba11815b970 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. diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -1711,7 +1711,7 @@ class TestRunner(object): 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