From d34b4e3e949d28874497ffa778e60e17f9d0576a Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Sat, 26 May 2007 13:18:14 +0200 Subject: [PATCH] [svn] fixed bug in iteration over none --HG-- branch : trunk --- jinja/datastructure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jinja/datastructure.py b/jinja/datastructure.py index a2350ab..f66e16d 100644 --- a/jinja/datastructure.py +++ b/jinja/datastructure.py @@ -316,7 +316,7 @@ class LoopContext(object): self.loop_function = loop_function self.parent = parent self._stack = [] - if seq is not None: + if loop_function is None: self.push(seq) def push(self, seq): -- 2.26.2