From: Armin Ronacher Date: Thu, 14 Jan 2010 00:26:40 +0000 (+0100) Subject: More correct fix for 380. The only thing that is part of the outer scope X-Git-Tag: 2.3~41 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ef18944317d79cd4919561f29c9f772869e88443;p=jinja2.git More correct fix for 380. The only thing that is part of the outer scope is the name of the thing to call. Though because it will never be able to track store nodes, the one before should not do harm either. --HG-- branch : trunk --- diff --git a/jinja2/compiler.py b/jinja2/compiler.py index bcb2287..ab1afee 100644 --- a/jinja2/compiler.py +++ b/jinja2/compiler.py @@ -327,8 +327,7 @@ class FrameIdentifierVisitor(NodeVisitor): self.visit(node.iter) def visit_CallBlock(self, node): - for child in node.iter_child_nodes(exclude=('body', 'args')): - self.visit(child) + self.visit(node.call) def visit_FilterBlock(self, node): self.visit(node.filter)