mercurial/help.py
changeset 48923 428177ad70b0
parent 48913 f254fc73d956
child 49024 7bd5f862b249
--- 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]