[Zope3-checkins] CVS: Zope3/src/zope/tal - talgenerator.py:1.7 driver.py:1.5

Jeremy Hylton jeremy@zope.com
Mon, 30 Jun 2003 14:38:18 -0400


Update of /cvs-repository/Zope3/src/zope/tal
In directory cvs.zope.org:/tmp/cvs-serv12217

Modified Files:
	talgenerator.py driver.py 
Log Message:
Remove unused local variables.
Remove handling for '-n' option not passed to getopt arg list.


=== Zope3/src/zope/tal/talgenerator.py 1.6 => 1.7 ===
--- Zope3/src/zope/tal/talgenerator.py:1.6	Fri Apr  4 11:05:44 2003
+++ Zope3/src/zope/tal/talgenerator.py	Mon Jun 30 14:38:18 2003
@@ -72,7 +72,7 @@
     def optimize(self, program):
         output = []
         collect = []
-        rawseen = cursor = 0
+        cursor = 0
         if self.xml:
             endsep = "/>"
         else:
@@ -117,7 +117,6 @@
                     output.append(("rawtextOffset", (text, len(text))))
             if opcode != None:
                 output.append(self.optimizeArgsList(item))
-            rawseen = cursor+1
             collect = []
         return self.optimizeCommonTriple(output)
 
@@ -697,7 +696,6 @@
         replace = todo.get("replace")
         condition = todo.get("condition")
         onError = todo.get("onError")
-        define = todo.get("define")
         repldict = todo.get("repldict", {})
         scope = todo.get("scope")
         optTag = todo.get("optional tag")


=== Zope3/src/zope/tal/driver.py 1.4 => 1.5 ===
--- Zope3/src/zope/tal/driver.py:1.4	Thu Apr 17 16:05:14 2003
+++ Zope3/src/zope/tal/driver.py	Mon Jun 30 14:38:18 2003
@@ -132,8 +132,6 @@
             strictinsert = 0
         if opt == '-m':
             macros = 1
-        if opt == '-n':
-            versionTest = 0
         if opt in ('-x', '--xml'):
             if mode == 'html':
                 usage(1, '--html and --xml are mutually exclusive')