diff -r 7eba8f83129b -r e7aa113b14f7 hgext/beautifygraph.py --- a/hgext/beautifygraph.py Wed Aug 01 12:57:15 2018 -0700 +++ b/hgext/beautifygraph.py Wed Aug 01 13:00:45 2018 -0700 @@ -18,6 +18,7 @@ encoding, extensions, graphmod, + pycompat, templatekw, ) @@ -53,7 +54,7 @@ def convertedges(line): line = ' %s ' % line pretty = [] - for idx in xrange(len(line) - 2): + for idx in pycompat.xrange(len(line) - 2): pretty.append(prettyedge(line[idx], line[idx + 1], line[idx + 2])) return ''.join(pretty)