--- 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