[ZPT] CVS: Packages/TAL - TALGenerator.py:1.29

guido@digicool.com guido@digicool.com
Tue, 27 Mar 2001 11:58:00 -0500 (EST)


Update of /cvs-repository/Packages/TAL
In directory korak:/tmp/cvs-serv15251

Modified Files:
	TALGenerator.py 
Log Message:
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.



--- Updated File TALGenerator.py in package Packages/TAL --
--- TALGenerator.py	2001/03/26 22:25:54	1.28
+++ TALGenerator.py	2001/03/27 16:57:59	1.29
@@ -110,6 +110,8 @@
         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):