changeset 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 6b8abdc4bb22
children 0dd6bdeb2eb5
files CHANGES.txt roundup/cgi/TAL/DummyEngine.py
diffstat 2 files changed, 5 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGES.txt	Sat Sep 03 20:12:51 2011 +0000
+++ b/CHANGES.txt	Mon Sep 26 07:51:42 2011 +0000
@@ -13,6 +13,8 @@
 
 Fixed:
 
+- issue2550728: remove buggy parentheses in TAL/DummyEngine.py.
+  Reported and fixed by Ralf Hemmecke. (Bernhard)
 - issue2550715: IndexError when requesting non-existing file via http.
   Reported and fixed by Cédric Krier. (Bernhard)
 - issue2550695: 'No sort or group' settings not retained when editing queries.
--- 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/