[Zope-Checkins] CVS: Zope/lib/python/TAL - TALInterpreter.py:1.64.16.2

Jeremy Hylton jeremy@zope.com
Wed, 25 Sep 2002 12:01:00 -0400


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

Modified Files:
      Tag: Zope-2_5-branch
	TALInterpreter.py 
Log Message:
Backport: Remove unused test code.


=== Zope/lib/python/TAL/TALInterpreter.py 1.64.16.1 => 1.64.16.2 ===
--- Zope/lib/python/TAL/TALInterpreter.py:1.64.16.1	Fri Mar 15 12:46:53 2002
+++ Zope/lib/python/TAL/TALInterpreter.py	Wed Sep 25 12:01:00 2002
@@ -585,26 +585,3 @@
     bytecode_handlers_tal["onError"] = do_onError_tal
     bytecode_handlers_tal["<attrAction>"] = attrAction_tal
     bytecode_handlers_tal["optTag"] = do_optTag_tal
-
-
-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()