D12331: manifest: remove pycompat.iteritems()
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Thu Mar 3 21:23:49 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/D12331
AFFECTED FILES
mercurial/manifest.py
CHANGE DETAILS
diff --git a/mercurial/manifest.py b/mercurial/manifest.py
--- a/mercurial/manifest.py
+++ b/mercurial/manifest.py
@@ -826,9 +826,7 @@
def _loadalllazy(self):
selfdirs = self._dirs
subpath = self._subpath
- for d, (node, readsubtree, docopy) in pycompat.iteritems(
- self._lazydirs
- ):
+ for d, (node, readsubtree, docopy) in self._lazydirs.items():
if docopy:
selfdirs[d] = readsubtree(subpath(d), node).copy()
else:
@@ -2245,7 +2243,7 @@
m0 = self._manifestlog.get(self._dir, store.node(r0)).read()
m1 = self.read()
md = treemanifest(self._manifestlog.nodeconstants, dir=self._dir)
- for f, ((n0, fl0), (n1, fl1)) in pycompat.iteritems(m0.diff(m1)):
+ for f, ((n0, fl0), (n1, fl1)) in m0.diff(m1).items():
if n1:
md[f] = n1
if fl1:
To: indygreg, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
More information about the Mercurial-devel
mailing list