mercurial/branchmap.py
changeset 43104 74802979dd9d
parent 43077 687b865b95ad
child 43106 d783f945a701
--- a/mercurial/branchmap.py	Sun Oct 06 17:45:05 2019 -0400
+++ b/mercurial/branchmap.py	Sun Oct 06 17:59:15 2019 -0400
@@ -91,7 +91,7 @@
         clbranchinfo = cl.branchinfo
         rbheads = []
         closed = []
-        for bheads in remotebranchmap.itervalues():
+        for bheads in pycompat.itervalues(remotebranchmap):
             rbheads += bheads
             for h in bheads:
                 r = clrev(h)
@@ -350,7 +350,7 @@
     def iterheads(self):
         """ returns all the heads """
         self._verifyall()
-        return self._entries.itervalues()
+        return pycompat.itervalues(self._entries)
 
     def copy(self):
         """return an deep copy of the branchcache object"""