templatekw: remove pycompat.iteritems()
authorGregory Szorc <gregory.szorc@gmail.com>
Mon, 21 Feb 2022 11:13:15 -0700
changeset 48930 e6df205a876c
parent 48929 278030cc9353
child 48931 6f10a2d6adf9
templatekw: remove pycompat.iteritems() Differential Revision: https://phab.mercurial-scm.org/D12335
mercurial/templatekw.py
--- a/mercurial/templatekw.py	Mon Feb 21 11:12:47 2022 -0700
+++ b/mercurial/templatekw.py	Mon Feb 21 11:13:15 2022 -0700
@@ -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()