mercurial/sshpeer.py
changeset 43106 d783f945a701
parent 43089 c59eb1560c44
child 44919 5d77f571a563
--- a/mercurial/sshpeer.py	Sun Oct 06 19:25:18 2019 -0400
+++ b/mercurial/sshpeer.py	Mon Oct 07 00:04:04 2019 -0400
@@ -479,10 +479,10 @@
             else:
                 wireargs[k] = args[k]
                 del args[k]
-        for k, v in sorted(wireargs.iteritems()):
+        for k, v in sorted(pycompat.iteritems(wireargs)):
             self._pipeo.write(b"%s %d\n" % (k, len(v)))
             if isinstance(v, dict):
-                for dk, dv in v.iteritems():
+                for dk, dv in pycompat.iteritems(v):
                     self._pipeo.write(b"%s %d\n" % (dk, len(dv)))
                     self._pipeo.write(dv)
             else: