More correct fix for 380. The only thing that is part of the outer scope
authorArmin Ronacher <armin.ronacher@active-4.com>
Thu, 14 Jan 2010 00:26:40 +0000 (01:26 +0100)
committerArmin Ronacher <armin.ronacher@active-4.com>
Thu, 14 Jan 2010 00:26:40 +0000 (01:26 +0100)
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

index bcb228764445ba3396424a0def796d780d2a65f3..ab1afee7db922eea45f4a1c27480a7aa88cb56e3 100644 (file)
@@ -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)