From: ber Date: Mon, 26 Sep 2011 07:51:42 +0000 (+0000) Subject: - issue2550728: remove buggy parentheses in TAL/DummyEngine.py. X-Git-Url: https://git.tokkee.org/?p=roundup.git;a=commitdiff_plain;h=df9b1f8b41ff62abd059c979f101da4b835ea304 - 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 --- 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: