Mercurial > hg-stable
diff hgext/fastannotate/formatter.py @ 49292:d44e3c45f0e4
py3: replace `pycompat.xrange` by `range`
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Sun, 29 May 2022 15:17:27 +0200 |
parents | 642e31cb55f0 |
children | 493034cc3265 |
line wrap: on
line diff
--- a/hgext/fastannotate/formatter.py Sun May 29 12:38:54 2022 +0200 +++ b/hgext/fastannotate/formatter.py Sun May 29 15:17:27 2022 +0200 @@ -93,7 +93,7 @@ # buffered output result = b'' - for i in pycompat.xrange(len(annotatedresult)): + for i in range(len(annotatedresult)): for j, p in enumerate(pieces): sep = self.funcmap[j][1] padding = b' ' * (maxwidths[j] - len(p[i])) @@ -148,7 +148,7 @@ result = b'' lasti = len(annotatedresult) - 1 - for i in pycompat.xrange(len(annotatedresult)): + for i in range(len(annotatedresult)): result += b'\n {\n' for j, p in enumerate(pieces): k, vs = p