help: remove pycompat.iteritems()
authorGregory Szorc <gregory.szorc@gmail.com>
Mon, 21 Feb 2022 11:10:08 -0700
changeset 49014 428177ad70b0
parent 49013 fe056166b40d
child 49015 dea766fca7e1
help: remove pycompat.iteritems() Differential Revision: https://phab.mercurial-scm.org/D12328
mercurial/help.py
--- a/mercurial/help.py	Mon Feb 21 11:09:30 2022 -0700
+++ b/mercurial/help.py	Mon Feb 21 11:10:08 2022 -0700
@@ -297,8 +297,8 @@
                 continue
             results[b'commands'].append((cmdname, summary))
     for name, docs in itertools.chain(
-        pycompat.iteritems(extensions.enabled(False)),
-        pycompat.iteritems(extensions.disabled()),
+        extensions.enabled(False).items(),
+        extensions.disabled().items(),
     ):
         if not docs:
             continue
@@ -311,7 +311,7 @@
         except ImportError:
             # debug message would be printed in extensions.load()
             continue
-        for cmd, entry in pycompat.iteritems(getattr(mod, 'cmdtable', {})):
+        for cmd, entry in getattr(mod, 'cmdtable', {}).items():
             if kw in cmd or (len(entry) > 2 and lowercontains(entry[2])):
                 cmdname = cmdutil.parsealiases(cmd)[0]
                 func = entry[0]