changeset 36282:3e1139b7d617

py3: explicitly convert result of dict.items() into list Differential Revision: https://phab.mercurial-scm.org/D2320
author Pulkit Goyal <7895pulkit@gmail.com>
date Sun, 18 Feb 2018 17:35:44 +0530
parents d822f3fb6be8
children a67b144ef74f
files hgext/mq.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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'))