Patchwork [2,of,2] hghave: switch from iteritems to items

login
register
mail settings
Submitter timeless
Date May 5, 2016, 9:13 a.m.
Message ID <cd573eae752f00afe05b.1462439621@gcc2-power8.osuosl.org>
Download mbox | patch
Permalink /patch/14913/
State Superseded
Headers show

Comments

timeless - May 5, 2016, 9:13 a.m.
# HG changeset patch
# User timeless <timeless@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.

Patch

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()