mercurial/wireprotov1server.py
changeset 48913 f254fc73d956
parent 48875 6000f5b25c9b
child 50439 4cafe20b79b6
child 50539 7b723217d368
--- a/mercurial/wireprotov1server.py	Thu Mar 03 17:39:20 2022 -0800
+++ b/mercurial/wireprotov1server.py	Thu Mar 03 18:28:30 2022 -0800
@@ -235,7 +235,7 @@
 def branchmap(repo, proto):
     branchmap = repo.branchmap()
     heads = []
-    for branch, nodes in pycompat.iteritems(branchmap):
+    for branch, nodes in branchmap.items():
         branchname = urlreq.quote(encoding.fromlocal(branch))
         branchnodes = wireprototypes.encodelist(nodes)
         heads.append(b'%s %s' % (branchname, branchnodes))
@@ -432,7 +432,7 @@
     opts = options(
         b'getbundle', wireprototypes.GETBUNDLE_ARGUMENTS.keys(), others
     )
-    for k, v in pycompat.iteritems(opts):
+    for k, v in opts.items():
         keytype = wireprototypes.GETBUNDLE_ARGUMENTS[k]
         if keytype == b'nodes':
             opts[k] = wireprototypes.decodelist(v)