equal
deleted
inserted
replaced
53 |
53 |
54 def convertedges(line): |
54 def convertedges(line): |
55 line = ' %s ' % line |
55 line = ' %s ' % line |
56 pretty = [] |
56 pretty = [] |
57 for idx in pycompat.xrange(len(line) - 2): |
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 return ''.join(pretty) |
61 return ''.join(pretty) |
60 |
62 |
61 def getprettygraphnode(orig, *args, **kwargs): |
63 def getprettygraphnode(orig, *args, **kwargs): |
62 node = orig(*args, **kwargs) |
64 node = orig(*args, **kwargs) |
63 if node == 'o': |
65 if node == 'o': |