From 5fa8f8d0fd48e88001d9242d423567a858630895 Mon Sep 17 00:00:00 2001 From: Ralf Hemmecke Date: Fri, 23 Sep 2011 22:27:28 +0200 Subject: remove buggy parentheses --- roundup/cgi/TAL/DummyEngine.py | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-) 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: -- 1.7.4.1