[Updated] D12322: lfs: remove pycompat.iteritems()
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Tue Mar 8 10:57:33 UTC 2022
Closed by commit rHG1672c5af1271: lfs: remove pycompat.iteritems() (authored by indygreg).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D12322?vs=32533&id=32574
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D12322/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D12322
AFFECTED FILES
hgext/lfs/__init__.py
hgext/lfs/pointer.py
CHANGE DETAILS
diff --git a/hgext/lfs/pointer.py b/hgext/lfs/pointer.py
--- a/hgext/lfs/pointer.py
+++ b/hgext/lfs/pointer.py
@@ -40,7 +40,7 @@
def serialize(self):
sortkeyfunc = lambda x: (x[0] != b'version', x)
- items = sorted(pycompat.iteritems(self.validate()), key=sortkeyfunc)
+ items = sorted(self.validate().items(), key=sortkeyfunc)
return b''.join(b'%s %s\n' % (k, v) for k, v in items)
def oid(self):
diff --git a/hgext/lfs/__init__.py b/hgext/lfs/__init__.py
--- a/hgext/lfs/__init__.py
+++ b/hgext/lfs/__init__.py
@@ -399,7 +399,7 @@
def pointer(v):
# In the file spec, version is first and the other keys are sorted.
sortkeyfunc = lambda x: (x[0] != b'version', x)
- items = sorted(pycompat.iteritems(pointers[v]), key=sortkeyfunc)
+ items = sorted(pointers[v].items(), key=sortkeyfunc)
return util.sortdict(items)
makemap = lambda v: {
To: indygreg, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20220308/b3969da9/attachment-0002.html>
More information about the Mercurial-patches
mailing list