D12335: templatekw: remove pycompat.iteritems()
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Thu Mar 3 21:23:52 UTC 2022
indygreg created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D12335
AFFECTED FILES
mercurial/templatekw.py
CHANGE DETAILS
diff --git a/mercurial/templatekw.py b/mercurial/templatekw.py
--- a/mercurial/templatekw.py
+++ b/mercurial/templatekw.py
@@ -685,7 +685,7 @@
d = {b'name': k}
if len(ps) == 1:
d[b'url'] = ps[0].rawloc
- sub_opts = pycompat.iteritems(ps[0].suboptions)
+ sub_opts = ps[0].suboptions.items()
sub_opts = util.sortdict(sorted(sub_opts))
d.update(sub_opts)
path_dict = util.sortdict()
To: indygreg, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
More information about the Mercurial-devel
mailing list