Mercurial > hg
diff mercurial/templatefilters.py @ 49284:d44e3c45f0e4
py3: replace `pycompat.xrange` by `range`
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Sun, 29 May 2022 15:17:27 +0200 |
parents | 51aed118f9dc |
children | c96ed4029fda |
line wrap: on
line diff
--- a/mercurial/templatefilters.py Sun May 29 12:38:54 2022 +0200 +++ b/mercurial/templatefilters.py Sun May 29 15:17:27 2022 +0200 @@ -140,7 +140,7 @@ b = b[: len(a)] if a == b: return a - for i in pycompat.xrange(len(a)): + for i in range(len(a)): if a[i] != b[i]: return a[:i] return a @@ -311,7 +311,7 @@ endswithnewline = text[-1:] == b'\n' def indenter(): - for i in pycompat.xrange(num_lines): + for i in range(num_lines): l = lines[i] if l.strip(): yield prefix if i else firstline