py3: explicitly convert result of dict.items() into list
authorPulkit Goyal <7895pulkit@gmail.com>
Sun, 18 Feb 2018 17:35:44 +0530
changeset 36282 3e1139b7d617
parent 36281 d822f3fb6be8
child 36283 a67b144ef74f
py3: explicitly convert result of dict.items() into list Differential Revision: https://phab.mercurial-scm.org/D2320
hgext/mq.py
--- a/hgext/mq.py	Sun Feb 18 17:35:13 2018 +0530
+++ b/hgext/mq.py	Sun Feb 18 17:35:44 2018 +0530
@@ -3196,7 +3196,7 @@
                 guards[g] += 1
         if ui.verbose:
             guards['NONE'] = noguards
-        guards = guards.items()
+        guards = list(guards.items())
         guards.sort(key=lambda x: x[0][1:])
         if guards:
             ui.note(_('guards in series file:\n'))