# HG changeset patch # User Martin von Zweigbergk # Date 1562879808 25200 # Node ID 46c990705a961c82ccc70602ed03b597b9723bbd # Parent 9e0d35d2f7d438cadc97fafdee407ea77dd359a2 py3: replace xrange() by range() diff -r 9e0d35d2f7d4 -r 46c990705a96 hgext3rd/evolve/stablerange.py --- a/hgext3rd/evolve/stablerange.py Thu Jul 11 12:19:49 2019 -0700 +++ b/hgext3rd/evolve/stablerange.py Thu Jul 11 14:16:48 2019 -0700 @@ -502,7 +502,7 @@ elif skips < size: revs = walkfrom(jumphead) next(revs) - for i in xrange(skips): + for i in range(skips): jumphead = next(revs) assert jumphead is not None skipped = skips diff -r 9e0d35d2f7d4 -r 46c990705a96 hgext3rd/evolve/stablesort.py --- a/hgext3rd/evolve/stablesort.py Thu Jul 11 12:19:49 2019 -0700 +++ b/hgext3rd/evolve/stablesort.py Thu Jul 11 14:16:48 2019 -0700 @@ -434,7 +434,7 @@ def popready(stack): """pop the top most ready item in the list""" - for idx in xrange(len(stack) - 1, -1, -1): + for idx in range(len(stack) - 1, -1, -1): if children[stack[idx]].issubset(seen): return stack.pop(idx) return None @@ -549,7 +549,7 @@ # merge revision def jumps(): - for idx in xrange(index[rev - 1], index[rev]): + for idx in range(index[rev - 1], index[rev]): i = idx * 3 yield tuple(data[i:i + 3]) return jumps() diff -r 9e0d35d2f7d4 -r 46c990705a96 hgext3rd/pullbundle.py --- a/hgext3rd/pullbundle.py Thu Jul 11 12:19:49 2019 -0700 +++ b/hgext3rd/pullbundle.py Thu Jul 11 14:16:48 2019 -0700 @@ -507,7 +507,7 @@ % (count, len(actionrevs))) if 1 < min_cache: repo.ui.write(" not caching ranges smaller than %d changesets\n" % min_cache) - for i in xrange(count): + for i in range(count): repo.ui.progress('gathering data', i, total=count) outgoing = takeonesample(repo, actionrevs) ranges = sliceoutgoing(repo, outgoing)