D12328: help: remove pycompat.iteritems()
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Thu Mar 3 21:23:48 UTC 2022
indygreg created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D12328
AFFECTED FILES
mercurial/help.py
CHANGE DETAILS
diff --git a/mercurial/help.py b/mercurial/help.py
--- a/mercurial/help.py
+++ b/mercurial/help.py
@@ -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]
To: indygreg, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
More information about the Mercurial-devel
mailing list