Mercurial > public > mercurial-scm > hg-stable
diff mercurial/graphmod.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/mercurial/graphmod.py Sun May 29 12:38:54 2022 +0200 +++ b/mercurial/graphmod.py Sun May 29 15:17:27 2022 +0200 @@ -22,7 +22,6 @@ from .thirdparty import attr from . import ( dagop, - pycompat, smartset, util, ) @@ -463,16 +462,16 @@ # shift_interline is the line containing the non-vertical # edges between this entry and the next shift_interline = echars[: idx * 2] - for i in pycompat.xrange(2 + coldiff): + for i in range(2 + coldiff): shift_interline.append(b' ') count = ncols - idx - 1 if coldiff == -1: - for i in pycompat.xrange(count): + for i in range(count): shift_interline.extend([b'/', b' ']) elif coldiff == 0: shift_interline.extend(echars[(idx + 1) * 2 : ncols * 2]) else: - for i in pycompat.xrange(count): + for i in range(count): shift_interline.extend([b'\\', b' ']) # draw edges from the current node to its parents