mirror of
https://github.com/newren/git-filter-repo.git
synced 2024-07-06 18:32:14 +02:00
filter-repo (python3): xrange() -> range()
Signed-off-by: Elijah Newren <newren@gmail.com>
This commit is contained in:
parent
511a8f52f8
commit
468ef568cf
@ -126,7 +126,7 @@ class PathQuoting:
|
||||
'"': '"',
|
||||
'\\':'\\'}
|
||||
_unescape_re = re.compile(r'\\([a-z"\\]|[0-9]{3})')
|
||||
_escape = [chr(x) for x in xrange(127)]+['\\'+oct(x)[1:] for x in xrange(127,256)]
|
||||
_escape = [chr(x) for x in range(127)]+['\\'+oct(x)[1:] for x in range(127,256)]
|
||||
_reverse = dict(map(reversed, _unescape.items()))
|
||||
for x in _reverse:
|
||||
_escape[ord(x)] = '\\'+_reverse[x]
|
||||
@ -1217,10 +1217,10 @@ class FastExportFilter(object):
|
||||
# ancestor of another parent.)
|
||||
num_parents = len(parents)
|
||||
to_remove = []
|
||||
for cur in xrange(num_parents):
|
||||
for cur in range(num_parents):
|
||||
if not is_rewritten[cur]:
|
||||
continue
|
||||
for other in xrange(num_parents):
|
||||
for other in range(num_parents):
|
||||
if cur == other:
|
||||
continue
|
||||
if not self._graph.is_ancestor(parents[cur], parents[other]):
|
||||
|
Loading…
Reference in New Issue
Block a user