[ZPT] CVS: Zope/lib/python/TAL - TALInterpreter.py:1.69.6.8
Jeremy Hylton
jeremy@zope.com
Wed, 25 Sep 2002 11:59:45 -0400
Update of /cvs-repository/Zope/lib/python/TAL
In directory cvs.zope.org:/tmp/cvs-serv25022
Modified Files:
Tag: Zope-2_6-branch
TALInterpreter.py
Log Message:
Backport: Remove unused test code.
=== Zope/lib/python/TAL/TALInterpreter.py 1.69.6.7 => 1.69.6.8 ===
--- Zope/lib/python/TAL/TALInterpreter.py:1.69.6.7 Tue Sep 24 11:54:11 2002
+++ Zope/lib/python/TAL/TALInterpreter.py Wed Sep 25 11:59:39 2002
@@ -779,26 +779,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()