From ef18944317d79cd4919561f29c9f772869e88443 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Thu, 14 Jan 2010 01:26:40 +0100 Subject: [PATCH] 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 --- jinja2/compiler.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) -- 2.26.2