changeset 48917:1672c5af1271

lfs: remove pycompat.iteritems() Differential Revision: https://phab.mercurial-scm.org/D12322
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 21 Feb 2022 11:06:46 -0700
parents bac59722c5a3
children 0fe003495f72
files hgext/lfs/__init__.py hgext/lfs/pointer.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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):