This commit is contained in:
Steve Losh 2010-10-07 21:50:50 -04:00
parent 96a3914382
commit 0940724581

View File

@ -326,7 +326,7 @@ def ascii(buf, state, type, char, text, coldata):
def generate(dag, edgefn):
seen, state = [], [0, 0]
buf = Buffer()
for node, parents in dag:
for node, parents in list(dag)[:-1]:
char = '@' if node.n == int(current) else 'o'
ascii(buf, state, 'C', char, ['[%s]' % str(node.n)], edgefn(seen, node, parents))
return buf.b