changeset 40768:5d1550b9a533

py3: use dict.items() instead of dict.iteritems() dict.iteritems() does not exist on Python 3. Differential Revision: https://phab.mercurial-scm.org/D5304
author Pulkit Goyal <pulkit@yandex-team.ru>
date Mon, 26 Nov 2018 15:37:48 +0300
parents 9446d5aa0f32
children e0b485a76009
files tests/test-remotefilelog-histpack.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-remotefilelog-histpack.py	Mon Nov 26 15:36:51 2018 +0300
+++ b/tests/test-remotefilelog-histpack.py	Mon Nov 26 15:37:48 2018 +0300
@@ -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)