From df9b1f8b41ff62abd059c979f101da4b835ea304 Mon Sep 17 00:00:00 2001 From: ber Date: Mon, 26 Sep 2011 07:51:42 +0000 Subject: [PATCH] - issue2550728: remove buggy parentheses in TAL/DummyEngine.py. Reported and fixed by Ralf Hemmecke. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4646 57a73879-2fb5-44c3-a270-3262357dd7e2 --- CHANGES.txt | 2 ++ roundup/cgi/TAL/DummyEngine.py | 9 +++------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index ac6e445..77136e6 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -13,6 +13,8 @@ Features: 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. diff --git a/roundup/cgi/TAL/DummyEngine.py b/roundup/cgi/TAL/DummyEngine.py index 9c56416..9f63aca 100644 --- a/roundup/cgi/TAL/DummyEngine.py +++ b/roundup/cgi/TAL/DummyEngine.py @@ -79,8 +79,7 @@ class DummyEngine: 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 @@ class DummyEngine: 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 @@ class DummyEngine: 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: -- 2.30.2