lfs: remove pycompat.iteritems()
Differential Revision: https://phab.mercurial-scm.org/D12322
--- a/hgext/lfs/__init__.py Tue Mar 01 20:46:06 2022 -0800
+++ b/hgext/lfs/__init__.py Mon Feb 21 11:06:46 2022 -0700
@@ -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: {
--- a/hgext/lfs/pointer.py Tue Mar 01 20:46:06 2022 -0800
+++ b/hgext/lfs/pointer.py Mon Feb 21 11:06:46 2022 -0700
@@ -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):