[PATCH 2 of 2] hghave: switch from iteritems to items

timeless timeless at fmr.im
Thu May 5 05:13:41 EDT 2016


# HG changeset patch
# User timeless <timeless at mozdev.org>
# Date 1462439546 0
#      Thu May 05 09:12:26 2016 +0000
# Node ID cd573eae752f00afe05b21b5bf5ba144b59a5fd9
# Parent  b5d88fd58b39e6b96ce18a001494113195cfe43c
# Available At bb://timeless/mercurial-crew
#              hg pull bb://timeless/mercurial-crew -r cd573eae752f
hghave: switch from iteritems to items

With this, test-hghave.t passes.

Four features fail because mercurial still is not py3 safe:
absimport
cacheable
hardlink
defaultcacerts

But that will be resolved automatically eventually.

diff -r b5d88fd58b39 -r cd573eae752f 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()


More information about the Mercurial-devel mailing list