Patchwork D5304: py3: use dict.items() instead of dict.iteritems()

login
register
mail settings
Submitter phabricator
Date Nov. 26, 2018, 11:06 p.m.
Message ID <541833ffc83abffb81efe8f23ae5e8c3@localhost.localdomain>
Download mbox | patch
Permalink /patch/36803/
State Not Applicable
Headers show

Comments

phabricator - Nov. 26, 2018, 11:06 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG5d1550b9a533: py3: use dict.items() instead of dict.iteritems() (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5304?vs=12598&id=12603

REVISION DETAIL
  https://phab.mercurial-scm.org/D5304

AFFECTED FILES
  tests/test-remotefilelog-histpack.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/tests/test-remotefilelog-histpack.py b/tests/test-remotefilelog-histpack.py
--- a/tests/test-remotefilelog-histpack.py
+++ b/tests/test-remotefilelog-histpack.py
@@ -161,11 +161,11 @@ 
         pack = self.createPack(revisions)
 
         # Verify the pack contents
-        for (filename, node), (p1, p2, lastnode) in allentries.iteritems():
+        for (filename, node), (p1, p2, lastnode) in allentries.items():
             ancestors = pack.getancestors(filename, node)
             self.assertEquals(ancestorcounts[(filename, node)],
                               len(ancestors))
-            for anode, (ap1, ap2, alinknode, copyfrom) in ancestors.iteritems():
+            for anode, (ap1, ap2, alinknode, copyfrom) in ancestors.items():
                 ep1, ep2, elinknode = allentries[(filename, anode)]
                 self.assertEquals(ap1, ep1)
                 self.assertEquals(ap2, ep2)