lfs: remove pycompat.iteritems()
authorGregory Szorc <gregory.szorc@gmail.com>
Mon, 21 Feb 2022 11:06:46 -0700
changeset 48917 1672c5af1271
parent 48916 bac59722c5a3
child 48918 0fe003495f72
lfs: remove pycompat.iteritems() Differential Revision: https://phab.mercurial-scm.org/D12322
hgext/lfs/__init__.py
hgext/lfs/pointer.py
--- 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):