From: Armin Ronacher Date: Sat, 26 May 2007 11:18:14 +0000 (+0200) Subject: [svn] fixed bug in iteration over none X-Git-Tag: 2.0rc1~316 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d34b4e3e949d28874497ffa778e60e17f9d0576a;p=jinja2.git [svn] fixed bug in iteration over none --HG-- branch : trunk --- 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):