Commit 79a35454 authored by Guido van Rossum's avatar Guido van Rossum

Asssert that the program stack and the todo stack are empty at the

end.  This would have caught the problem exposed in test10.html
earlier.
parent 65c265e5
......@@ -110,6 +110,8 @@ class TALGenerator:
self.emit("mode", xml and "xml" or "html")
def getCode(self):
assert not self.stack
assert not self.todoStack
return self.optimize(self.program), self.macros
def optimize(self, program):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment