hgext/githelp.py
changeset 43105 649d3ac37a12
parent 43077 687b865b95ad
child 43117 8ff1ecfadcd1
--- a/hgext/githelp.py	Sun Oct 06 17:59:15 2019 -0400
+++ b/hgext/githelp.py	Sun Oct 06 19:25:18 2019 -0400
@@ -116,7 +116,7 @@
     opts = dict(
         [
             (k, convert(v)) if isinstance(v, str) else (k, v)
-            for k, v in opts.iteritems()
+            for k, v in pycompat.iteritems(opts)
         ]
     )
 
@@ -132,7 +132,7 @@
     def __bytes__(self):
         cmd = b"hg " + self.name
         if self.opts:
-            for k, values in sorted(self.opts.iteritems()):
+            for k, values in sorted(pycompat.iteritems(self.opts)):
                 for v in values:
                     if v:
                         if isinstance(v, int):