Mercurial > hg
changeset 48923:428177ad70b0
help: remove pycompat.iteritems()
Differential Revision: https://phab.mercurial-scm.org/D12328
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 21 Feb 2022 11:10:08 -0700 |
parents | fe056166b40d |
children | dea766fca7e1 |
files | mercurial/help.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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]