hghave: switch from iteritems to items
authortimeless <timeless@mozdev.org>
Thu, 05 May 2016 09:12:26 +0000
changeset 29141 ba8999547f81
parent 29140 47eab0cb72e3
child 29142 c07be448028b
hghave: switch from iteritems to items With this, test-hghave.t passes on python 3. Four features fail because mercurial still is not py3 safe: absimport cacheable hardlink defaultcacerts But that will be resolved automatically eventually.
tests/hghave
--- a/tests/hghave	Thu May 05 09:07:01 2016 +0000
+++ b/tests/hghave	Thu May 05 09:12:26 2016 +0000
@@ -13,13 +13,13 @@
 checks = hghave.checks
 
 def list_features():
-    for name, feature in sorted(checks.iteritems()):
+    for name, feature in sorted(checks.items()):
         desc = feature[1]
         print(name + ':', desc)
 
 def test_features():
     failed = 0
-    for name, feature in checks.iteritems():
+    for name, feature in checks.items():
         check, _ = feature
         try:
             check()