[ZPT] CVS: Zope/lib/python/TAL - DummyEngine.py:1.32 HTMLTALParser.py:1.33 TALDefs.py:1.28 TALGenerator.py:1.55 TALInterpreter.py:1.69 TALParser.py:1.19 XMLParser.py:1.9 __init__.py:1.3 driver.py:1.28 markbench.py:1.4 runtest.py:1.22 setpath.py:1.6 timer.py:1.12
Martijn Pieters
mj@zope.com
Wed, 14 Aug 2002 17:59:25 -0400
Update of /cvs-repository/Zope/lib/python/TAL
In directory cvs.zope.org:/tmp/cvs-serv17881
Modified Files:
DummyEngine.py HTMLTALParser.py TALDefs.py TALGenerator.py
TALInterpreter.py TALParser.py XMLParser.py __init__.py
driver.py markbench.py runtest.py setpath.py timer.py
Log Message:
Clean up indentation and trailing whitespace.
=== Zope/lib/python/TAL/DummyEngine.py 1.31 => 1.32 ===
--- Zope/lib/python/TAL/DummyEngine.py:1.31 Fri May 24 11:43:56 2002
+++ Zope/lib/python/TAL/DummyEngine.py Wed Aug 14 17:58:54 2002
@@ -2,14 +2,14 @@
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
-#
+#
##############################################################################
"""
Dummy TALES engine so that I can test out the TAL implementation.
=== Zope/lib/python/TAL/HTMLTALParser.py 1.32 => 1.33 ===
--- Zope/lib/python/TAL/HTMLTALParser.py:1.32 Wed Apr 3 15:43:57 2002
+++ Zope/lib/python/TAL/HTMLTALParser.py Wed Aug 14 17:58:54 2002
@@ -2,14 +2,14 @@
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
-#
+#
##############################################################################
"""
Parse HTML and compile to TALInterpreter intermediate code.
=== Zope/lib/python/TAL/TALDefs.py 1.27 => 1.28 ===
--- Zope/lib/python/TAL/TALDefs.py:1.27 Wed Apr 3 15:43:57 2002
+++ Zope/lib/python/TAL/TALDefs.py Wed Aug 14 17:58:54 2002
@@ -2,14 +2,14 @@
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
-#
+#
##############################################################################
"""
Common definitions used by TAL and METAL compilation an transformation.
=== Zope/lib/python/TAL/TALGenerator.py 1.54 => 1.55 ===
--- Zope/lib/python/TAL/TALGenerator.py:1.54 Wed Apr 3 15:43:57 2002
+++ Zope/lib/python/TAL/TALGenerator.py Wed Aug 14 17:58:54 2002
@@ -2,14 +2,14 @@
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
-#
+#
##############################################################################
"""
Code generator for TALInterpreter intermediate code.
@@ -25,7 +25,7 @@
inMacroUse = 0
inMacroDef = 0
source_file = None
-
+
def __init__(self, expressionCompiler=None, xml=1, source_file=None):
if not expressionCompiler:
from DummyEngine import DummyEngine
@@ -214,7 +214,7 @@
if cexpr:
cexpr = self.compileExpression(optTag[0])
self.emit("optTag", name, cexpr, optTag[1], isend, start, program)
-
+
def emitRawText(self, text):
self.emit("rawtext", text)
=== Zope/lib/python/TAL/TALInterpreter.py 1.68 => 1.69 ===
--- Zope/lib/python/TAL/TALInterpreter.py:1.68 Wed Apr 3 15:43:57 2002
+++ Zope/lib/python/TAL/TALInterpreter.py Wed Aug 14 17:58:54 2002
@@ -2,14 +2,14 @@
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
-#
+#
##############################################################################
"""
Interpreter for a pre-compiled TAL program.
@@ -329,7 +329,7 @@
omit=0):
if tag_ns and not self.showtal:
return self.no_tag(start, program)
-
+
self.interpret(start)
if not isend:
self.interpret(program)
=== Zope/lib/python/TAL/TALParser.py 1.18 => 1.19 ===
--- Zope/lib/python/TAL/TALParser.py:1.18 Wed Apr 3 15:43:57 2002
+++ Zope/lib/python/TAL/TALParser.py Wed Aug 14 17:58:54 2002
@@ -2,14 +2,14 @@
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
-#
+#
##############################################################################
"""
Parse XML and compile to TALInterpreter intermediate code.
=== Zope/lib/python/TAL/XMLParser.py 1.8 => 1.9 ===
--- Zope/lib/python/TAL/XMLParser.py:1.8 Wed Apr 3 15:43:57 2002
+++ Zope/lib/python/TAL/XMLParser.py Wed Aug 14 17:58:54 2002
@@ -2,14 +2,14 @@
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
-#
+#
##############################################################################
"""
Generic expat-based XML parser base class.
@@ -50,7 +50,7 @@
try:
self.parser.ordered_attributes = self.ordered_attributes
except AttributeError:
- zLOG.LOG("TAL.XMLParser", zLOG.INFO,
+ zLOG.LOG("TAL.XMLParser", zLOG.INFO,
"Can't set ordered_attributes")
self.ordered_attributes = 0
for name in self.handler_names:
=== Zope/lib/python/TAL/__init__.py 1.2 => 1.3 ===
--- Zope/lib/python/TAL/__init__.py:1.2 Wed Apr 3 15:43:57 2002
+++ Zope/lib/python/TAL/__init__.py Wed Aug 14 17:58:54 2002
@@ -2,13 +2,13 @@
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
-#
+#
##############################################################################
""" Template Attribute Language package """
=== Zope/lib/python/TAL/driver.py 1.27 => 1.28 ===
--- Zope/lib/python/TAL/driver.py:1.27 Wed Apr 3 15:43:57 2002
+++ Zope/lib/python/TAL/driver.py Wed Aug 14 17:58:54 2002
@@ -3,14 +3,14 @@
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
-#
+#
##############################################################################
"""
Driver program to test METAL and TAL implementation.
=== Zope/lib/python/TAL/markbench.py 1.3 => 1.4 ===
--- Zope/lib/python/TAL/markbench.py:1.3 Wed Apr 3 15:43:57 2002
+++ Zope/lib/python/TAL/markbench.py Wed Aug 14 17:58:54 2002
@@ -4,7 +4,7 @@
# Version 1.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
=== Zope/lib/python/TAL/runtest.py 1.21 => 1.22 ===
--- Zope/lib/python/TAL/runtest.py:1.21 Wed Apr 3 15:43:57 2002
+++ Zope/lib/python/TAL/runtest.py Wed Aug 14 17:58:54 2002
@@ -3,14 +3,14 @@
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
-#
+#
##############################################################################
"""
Driver program to run METAL and TAL regression tests.
@@ -71,8 +71,8 @@
htmlargs.sort()
args = xmlargs + htmlargs
if not args:
- sys.stderr.write("No tests found -- please supply filenames\n")
- sys.exit(1)
+ sys.stderr.write("No tests found -- please supply filenames\n")
+ sys.exit(1)
errors = 0
for arg in args:
locopts = []
=== Zope/lib/python/TAL/setpath.py 1.5 => 1.6 ===
--- Zope/lib/python/TAL/setpath.py:1.5 Fri Apr 19 10:16:08 2002
+++ Zope/lib/python/TAL/setpath.py Wed Aug 14 17:58:54 2002
@@ -2,7 +2,7 @@
# Version 1.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
"""
=== Zope/lib/python/TAL/timer.py 1.11 => 1.12 ===
--- Zope/lib/python/TAL/timer.py:1.11 Wed Apr 3 15:43:57 2002
+++ Zope/lib/python/TAL/timer.py Wed Aug 14 17:58:54 2002
@@ -3,14 +3,14 @@
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
-#
+#
##############################################################################
"""
Helper program to time compilation and interpretation