Patchwork D2320: py3: explicitly convert result of dict.items() into list

login
register
mail settings
Submitter phabricator
Date Feb. 18, 2018, 1:29 p.m.
Message ID <differential-rev-PHID-DREV-54aasl5yt22p4mvuksoc-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/28074/
State Superseded
Headers show

Comments

phabricator - Feb. 18, 2018, 1:29 p.m.
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D2320

AFFECTED FILES
  hgext/mq.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/hgext/mq.py b/hgext/mq.py
--- a/hgext/mq.py
+++ b/hgext/mq.py
@@ -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'))