From 0167c1f02e360866b730cfb56eea4a03f2df77a4 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Thu, 18 Oct 2007 23:15:40 +0200 Subject: [PATCH] fixed but in requirement extraction that came up because the template node doesn't have direct children any more. --HG-- branch : trunk --- jinja/translators/python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jinja/translators/python.py b/jinja/translators/python.py index f760743..04b9aed 100644 --- a/jinja/translators/python.py +++ b/jinja/translators/python.py @@ -322,7 +322,7 @@ class PythonTranslator(Translator): # the master layout template is loaded. This can be used # for further processing. The output of those nodes does # not appear in the final template. - requirements += [child for child in node.get_child_nodes() + requirements += [child for child in node.body.get_child_nodes() if child.__class__ not in (nodes.Text, nodes.Block)] -- 2.26.2