# HG changeset patch # User Gregory Szorc # Date 2022-02-21 18:10:08 # Node ID 428177ad70b0d21bd4372ef4ecc1ad86aee8ecd1 # Parent fe056166b40dde82a06bd37a888f8e1bad592e43 help: remove pycompat.iteritems() Differential Revision: https://phab.mercurial-scm.org/D12328 diff --git a/mercurial/help.py b/mercurial/help.py --- a/mercurial/help.py +++ b/mercurial/help.py @@ -297,8 +297,8 @@ def topicmatch(ui, commands, kw): 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 @@ def topicmatch(ui, commands, kw): 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]