[ZPT] CVS: Zope/lib/python/TAL - TALInterpreter.py:1.73

Jeremy Hylton jeremy@zope.com
Tue, 24 Sep 2002 18:00:03 -0400


Update of /cvs-repository/Zope/lib/python/TAL
In directory cvs.zope.org:/tmp/cvs-serv13108

Modified Files:
	TALInterpreter.py 
Log Message:
Remove unused test code.

Had reference to TALCompiler -- the only one in TAL.  I assume this
was originally added for testing but has been subsumed by unit tests.


=== Zope/lib/python/TAL/TALInterpreter.py 1.72 => 1.73 ===
--- Zope/lib/python/TAL/TALInterpreter.py:1.72	Thu Sep 19 10:39:24 2002
+++ Zope/lib/python/TAL/TALInterpreter.py	Tue Sep 24 17:59:57 2002
@@ -748,26 +748,3 @@
 
 def _write_ValueError(s):
     raise ValueError, "I/O operation on closed file"
-
-
-def test():
-    from driver import FILE, parsefile
-    from DummyEngine import DummyEngine
-    try:
-        opts, args = getopt.getopt(sys.argv[1:], "")
-    except getopt.error, msg:
-        print msg
-        sys.exit(2)
-    if args:
-        file = args[0]
-    else:
-        file = FILE
-    doc = parsefile(file)
-    compiler = TALCompiler(doc)
-    program, macros = compiler()
-    engine = DummyEngine()
-    interpreter = TALInterpreter(program, macros, engine)
-    interpreter()
-
-if __name__ == "__main__":
-    test()