##// END OF EJS Templates
py3: don't use dict.iterkeys()...
Pulkit Goyal -
r40649:9769e0f6 default
parent child Browse files
Show More
@@ -468,7 +468,7 b' class mutablebasepack(versionmixin):'
468 # Precompute the location of each entry
468 # Precompute the location of each entry
469 locations = {}
469 locations = {}
470 count = 0
470 count = 0
471 for node in sorted(self.entries.iterkeys()):
471 for node in sorted(self.entries):
472 location = count * self.INDEXENTRYLENGTH
472 location = count * self.INDEXENTRYLENGTH
473 locations[node] = location
473 locations[node] = location
474 count += 1
474 count += 1
@@ -340,7 +340,7 b' class fileserverclient(object):'
340 missingid = cache.receiveline()
340 missingid = cache.receiveline()
341 if not missingid:
341 if not missingid:
342 missedset = set(missed)
342 missedset = set(missed)
343 for missingid in idmap.iterkeys():
343 for missingid in idmap:
344 if not missingid in missedset:
344 if not missingid in missedset:
345 missed.append(missingid)
345 missed.append(missingid)
346 self.ui.warn(_("warning: cache connection closed early - " +
346 self.ui.warn(_("warning: cache connection closed early - " +
@@ -419,7 +419,7 b' class remotefilelog(object):'
419 # Breadth first traversal to build linkrev graph
419 # Breadth first traversal to build linkrev graph
420 parentrevs = collections.defaultdict(list)
420 parentrevs = collections.defaultdict(list)
421 revmap = {}
421 revmap = {}
422 queue = collections.deque(((None, n) for n in parentsmap.iterkeys()
422 queue = collections.deque(((None, n) for n in parentsmap
423 if n not in allparents))
423 if n not in allparents))
424 while queue:
424 while queue:
425 prevrev, current = queue.pop()
425 prevrev, current = queue.pop()
@@ -507,7 +507,7 b' class repacker(object):'
507 total=len(byfile))
507 total=len(byfile))
508
508
509 ancestors = {}
509 ancestors = {}
510 nodes = list(node for node in entries.iterkeys())
510 nodes = list(node for node in entries)
511 nohistory = []
511 nohistory = []
512 for i, node in enumerate(nodes):
512 for i, node in enumerate(nodes):
513 if node in ancestors:
513 if node in ancestors:
@@ -643,7 +643,7 b' class repacker(object):'
643 count = 0
643 count = 0
644 for filename, entries in sorted(byfile.iteritems()):
644 for filename, entries in sorted(byfile.iteritems()):
645 ancestors = {}
645 ancestors = {}
646 nodes = list(node for node in entries.iterkeys())
646 nodes = list(node for node in entries)
647
647
648 for node in nodes:
648 for node in nodes:
649 if node in ancestors:
649 if node in ancestors:
General Comments 0
You need to be logged in to leave comments. Login now