mercurial/branchmap.py
changeset 48935 2cce2fa5bcf7
parent 48913 f254fc73d956
child 48946 642e31cb55f0
--- a/mercurial/branchmap.py	Mon Feb 21 11:24:57 2022 -0700
+++ b/mercurial/branchmap.py	Tue Mar 01 20:52:32 2022 -0800
@@ -119,7 +119,7 @@
         clbranchinfo = cl.branchinfo
         rbheads = []
         closed = set()
-        for bheads in pycompat.itervalues(remotebranchmap):
+        for bheads in remotebranchmap.values():
             rbheads += bheads
             for h in bheads:
                 r = clrev(h)
@@ -406,7 +406,7 @@
     def iterheads(self):
         """returns all the heads"""
         self._verifyall()
-        return pycompat.itervalues(self._entries)
+        return self._entries.values()
 
     def copy(self):
         """return an deep copy of the branchcache object"""