From patchwork Sun Feb 18 13:29:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D2320: py3: explicitly convert result of dict.items() into list From: phabricator X-Patchwork-Id: 28074 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Sun, 18 Feb 2018 13:29:32 +0000 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 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'))