Skip to content
Snippets Groups Projects
Commit de3a9d7e authored by Augie Fackler's avatar Augie Fackler
Browse files

beautifygraph: use slicing instead of subscripting on bytestr

Differential Revision: https://phab.mercurial-scm.org/D4246
parent 836433f3
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,9 @@
line = ' %s ' % line
pretty = []
for idx in pycompat.xrange(len(line) - 2):
pretty.append(prettyedge(line[idx], line[idx + 1], line[idx + 2]))
pretty.append(prettyedge(line[idx:idx + 1],
line[idx + 1:idx + 2],
line[idx + 2:idx + 3]))
return ''.join(pretty)
def getprettygraphnode(orig, *args, **kwargs):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment