diff options
author | Marius Gedminas <marius@gedmin.as> | 2004-06-10 09:55:46 +0000 |
---|---|---|
committer | Marius Gedminas <marius@gedmin.as> | 2004-06-10 09:55:46 +0000 |
commit | e83b3286e7863963e82a15dab556dec8a2682c17 (patch) | |
tree | ba9f576d89eee5ea95df0b3f25ed79a916ef212e /talinterpreter.py | |
parent | 2474b7cf3bdf05977c1443cde11c4a0a0dfd42f3 (diff) | |
download | zope-tal-e83b3286e7863963e82a15dab556dec8a2682c17.tar.gz |
Cleaned up trailing whitespace, fixed a typo, and wrapped a 97-character wide
docstring.
Diffstat (limited to 'talinterpreter.py')
-rw-r--r-- | talinterpreter.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/talinterpreter.py b/talinterpreter.py index c3c9323..cc21334 100644 --- a/talinterpreter.py +++ b/talinterpreter.py @@ -335,7 +335,7 @@ class TALInterpreter: if evalue is None: ok = 0 value = evalue - + if ok: if xlat: translated = self.translate(msgid or value, value, {}) @@ -488,7 +488,7 @@ class TALInterpreter: # 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 @@ class TALInterpreter: 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 @@ class TALInterpreter: 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]) |