Mercurial > hg
diff tests/run-tests.py @ 25261:27600986a0d9
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.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Fri, 22 May 2015 21:15:52 -0400 |
parents | c3459555318e |
children | 5a809deb88e6 |
line wrap: on
line diff
--- 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