From: Armin Ronacher Date: Sat, 15 Jan 2011 17:35:45 +0000 (+0100) Subject: Grammar. X-Git-Tag: 2.6~32 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bc56cd25c95b8c9d380b9af3726ecf8753764083;p=jinja2.git Grammar. --- diff --git a/jinja2/compiler.py b/jinja2/compiler.py index a4b5a2f..d0aadad 100644 --- a/jinja2/compiler.py +++ b/jinja2/compiler.py @@ -1089,7 +1089,7 @@ class CodeGenerator(NodeVisitor): node.iter_child_nodes(only=('else_', 'test')), ('loop',)): self.writeline("l_loop = environment.undefined(%r, name='loop')" % ("'loop' is undefined. the filter section of a loop as well " - "as the else block doesn't have access to the special 'loop'" + "as the else block don't have access to the special 'loop'" " variable of the current loop. Because there is no parent " "loop it's undefined. Happened in loop on %s" % self.position(node)))