diff roundup/cgi/TAL/DummyEngine.py @ 4533:792586cc78a4

issue2550728: remove buggy parentheses in TAL/DummyEngine.py. Reported and fixed by Ralf Hemmecke.
author Bernhard Reiter <Bernhard.Reiter@intevation.de>
date Mon, 26 Sep 2011 07:51:42 +0000
parents 8c2402a78bb0
children 63868084b8bb
line wrap: on
line diff
--- a/roundup/cgi/TAL/DummyEngine.py	Sat Sep 03 20:12:51 2011 +0000
+++ b/roundup/cgi/TAL/DummyEngine.py	Mon Sep 26 07:51:42 2011 +0000
@@ -79,8 +79,7 @@
         return "$%s$" % expr
 
     def uncompile(self, expression):
-        assert (expression.startswith("$") and expression.endswith("$"),
-            expression)
+        assert expression.startswith("$") and expression.endswith("$"),expression
         return expression[1:-1]
 
     def beginScope(self):
@@ -100,8 +99,7 @@
         self.globals[name] = value
 
     def evaluate(self, expression):
-        assert (expression.startswith("$") and expression.endswith("$"),
-            expression)
+        assert expression.startswith("$") and expression.endswith("$"), expression
         expression = expression[1:-1]
         m = name_match(expression)
         if m:
@@ -162,8 +160,7 @@
         return self.evaluate(expr)
 
     def evaluateMacro(self, macroName):
-        assert (macroName.startswith("$") and macroName.endswith("$"),
-            macroName)
+        assert macroName.startswith("$") and macroName.endswith("$"), macroName
         macroName = macroName[1:-1]
         file, localName = self.findMacroFile(macroName)
         if not file:

Roundup Issue Tracker: http://roundup-tracker.org/