From bc56cd25c95b8c9d380b9af3726ecf8753764083 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Sat, 15 Jan 2011 18:35:45 +0100 Subject: [PATCH] Grammar. --- jinja2/compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))) -- 2.26.2