hgext/convert/bzr.py
changeset 43105 649d3ac37a12
parent 43077 687b865b95ad
child 45942 89a2afe31e82
--- a/hgext/convert/bzr.py	Sun Oct 06 17:59:15 2019 -0400
+++ b/hgext/convert/bzr.py	Sun Oct 06 19:25:18 2019 -0400
@@ -12,7 +12,11 @@
 import os
 
 from mercurial.i18n import _
-from mercurial import demandimport, error
+from mercurial import (
+    demandimport,
+    error,
+    pycompat,
+)
 from . import common
 
 # these do not work with demandimport, blacklist
@@ -195,7 +199,7 @@
             if not branch.supports_tags():
                 return {}
             tagdict = branch.tags.get_tag_dict()
-            for name, rev in tagdict.iteritems():
+            for name, rev in pycompat.iteritems(tagdict):
                 bytetags[self.recode(name)] = rev
         return bytetags