##// END OF EJS Templates
lfs: remove pycompat.iteritems()...
Gregory Szorc -
r49772:1672c5af default
parent child Browse files
Show More
@@ -399,7 +399,7 b' def lfsfiles(context, mapping):'
399 def pointer(v):
399 def pointer(v):
400 # In the file spec, version is first and the other keys are sorted.
400 # In the file spec, version is first and the other keys are sorted.
401 sortkeyfunc = lambda x: (x[0] != b'version', x)
401 sortkeyfunc = lambda x: (x[0] != b'version', x)
402 items = sorted(pycompat.iteritems(pointers[v]), key=sortkeyfunc)
402 items = sorted(pointers[v].items(), key=sortkeyfunc)
403 return util.sortdict(items)
403 return util.sortdict(items)
404
404
405 makemap = lambda v: {
405 makemap = lambda v: {
@@ -40,7 +40,7 b' class gitlfspointer(dict):'
40
40
41 def serialize(self):
41 def serialize(self):
42 sortkeyfunc = lambda x: (x[0] != b'version', x)
42 sortkeyfunc = lambda x: (x[0] != b'version', x)
43 items = sorted(pycompat.iteritems(self.validate()), key=sortkeyfunc)
43 items = sorted(self.validate().items(), key=sortkeyfunc)
44 return b''.join(b'%s %s\n' % (k, v) for k, v in items)
44 return b''.join(b'%s %s\n' % (k, v) for k, v in items)
45
45
46 def oid(self):
46 def oid(self):
General Comments 0
You need to be logged in to leave comments. Login now