##// END OF EJS Templates
beautifygraph: use slicing instead of subscripting on bytestr...
Augie Fackler -
r39089:de3a9d7e default
parent child Browse files
Show More
@@ -55,7 +55,9 b' def convertedges(line):'
55 55 line = ' %s ' % line
56 56 pretty = []
57 57 for idx in pycompat.xrange(len(line) - 2):
58 pretty.append(prettyedge(line[idx], line[idx + 1], line[idx + 2]))
58 pretty.append(prettyedge(line[idx:idx + 1],
59 line[idx + 1:idx + 2],
60 line[idx + 2:idx + 3]))
59 61 return ''.join(pretty)
60 62
61 63 def getprettygraphnode(orig, *args, **kwargs):
General Comments 0
You need to be logged in to leave comments. Login now