[Zope3-checkins] SVN: Zope3/trunk/src/zope/tal/ Cleaned up trailing
whitespace, fixed a typo, and wrapped a 97-character wide
Marius Gedminas
marius at pov.lt
Thu Jun 10 05:55:47 EDT 2004
Log message for revision 25326:
Cleaned up trailing whitespace, fixed a typo, and wrapped a 97-character wide
docstring.
-=-
Modified: Zope3/trunk/src/zope/tal/dummyengine.py
===================================================================
--- Zope3/trunk/src/zope/tal/dummyengine.py 2004-06-10 09:29:32 UTC (rev 25325)
+++ Zope3/trunk/src/zope/tal/dummyengine.py 2004-06-10 09:55:46 UTC (rev 25326)
@@ -215,7 +215,7 @@
if self.useEngineAttrDicts:
globals = self.globals.copy()
locals = self.locals.copy()
-
+
assert lang == 'text/server-python'
import sys, StringIO
Modified: Zope3/trunk/src/zope/tal/interfaces.py
===================================================================
--- Zope3/trunk/src/zope/tal/interfaces.py 2004-06-10 09:29:32 UTC (rev 25325)
+++ Zope3/trunk/src/zope/tal/interfaces.py 2004-06-10 09:55:46 UTC (rev 25326)
@@ -11,7 +11,9 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
-"""Interface that a TAL expression implementation provides to the METAL/TAL implementation."""
+"""Interface that a TAL expression implementation provides to the METAL/TAL
+implementation.
+"""
from zope.interface import Attribute, Interface
@@ -165,8 +167,8 @@
per-language basis. In Python this usually everything the print
statement will return.
"""
-
+
class ITALIterator(Interface):
"""A TAL iterator
Modified: Zope3/trunk/src/zope/tal/taldefs.py
===================================================================
--- Zope3/trunk/src/zope/tal/taldefs.py 2004-06-10 09:29:32 UTC (rev 25325)
+++ Zope3/trunk/src/zope/tal/taldefs.py 2004-06-10 09:55:46 UTC (rev 25326)
@@ -12,7 +12,7 @@
#
##############################################################################
"""
-Common definitions used by TAL and METAL compilation an transformation.
+Common definitions used by TAL and METAL compilation and transformation.
"""
import re
Modified: Zope3/trunk/src/zope/tal/talgenerator.py
===================================================================
--- Zope3/trunk/src/zope/tal/talgenerator.py 2004-06-10 09:29:32 UTC (rev 25325)
+++ Zope3/trunk/src/zope/tal/talgenerator.py 2004-06-10 09:55:46 UTC (rev 25326)
@@ -694,7 +694,7 @@
todo["repldict"] = repldict
repldict = {}
if script:
- todo["script"] = script
+ todo["script"] = script
self.emitStartTag(name, self.replaceAttrs(attrlist, repldict), isend)
if optTag:
self.pushProgram()
@@ -705,7 +705,7 @@
if content and varname:
self.pushProgram()
if script:
- self.pushProgram()
+ self.pushProgram()
if todo and position != (None, None):
todo["position"] = position
self.todoPush(todo)
@@ -797,7 +797,7 @@
self.emitI18nVariable(varname)
# Do not test for "msgid is not None", i.e. we only want to test for
# explicit msgids here. See comment above.
- if msgid is not None:
+ if msgid is not None:
# in case tal:content, i18n:translate and i18n:name in the
# same tag insertTranslation opcode has already been
# emitted
Modified: Zope3/trunk/src/zope/tal/talgettext.py
===================================================================
--- Zope3/trunk/src/zope/tal/talgettext.py 2004-06-10 09:29:32 UTC (rev 25325)
+++ Zope3/trunk/src/zope/tal/talgettext.py 2004-06-10 09:55:46 UTC (rev 25326)
@@ -113,7 +113,7 @@
# text into a comment.
if default is not None and normalize(default) != msgid:
msgid = MessageID(msgid, default=default)
-
+
if domain not in self.catalog:
self.catalog[domain] = {}
domain = self.catalog[domain]
Modified: Zope3/trunk/src/zope/tal/talinterpreter.py
===================================================================
--- Zope3/trunk/src/zope/tal/talinterpreter.py 2004-06-10 09:29:32 UTC (rev 25325)
+++ Zope3/trunk/src/zope/tal/talinterpreter.py 2004-06-10 09:55:46 UTC (rev 25326)
@@ -335,7 +335,7 @@
if evalue is None:
ok = 0
value = evalue
-
+
if ok:
if xlat:
translated = self.translate(msgid or value, value, {})
@@ -488,7 +488,7 @@
# i18n interpolation dictionary.
value = self.engine.evaluate(expression)
- # evaluate() does not do any I18n, so we do it here.
+ # evaluate() does not do any I18n, so we do it here.
if isinstance(value, MessageID):
# Translate this now.
value = self.engine.translate(value)
@@ -599,7 +599,7 @@
self.popStream()
code = tmpstream.getvalue()
output = self.engine.evaluateCode(lang, code)
- self._stream_write(output)
+ self._stream_write(output)
bytecode_handlers["evaluateCode"] = do_evaluateCode
def do_loop(self, (name, expr, block)):
@@ -665,8 +665,8 @@
raise METALError("macro %s has incompatible mode %s" %
(`macroName`, `mode`), self.position)
self.pushMacro(macroName, compiledSlots)
-
- # We want 'macroname' name to be always available as a variable
+
+ # We want 'macroname' name to be always available as a variable
outer = self.engine.getValue('macroname')
self.engine.setLocal('macroname', macroName.split('/')[-1])
More information about the Zope3-Checkins
mailing list