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