[svn] fixed bug in iteration over none
authorArmin Ronacher <armin.ronacher@active-4.com>
Sat, 26 May 2007 11:18:14 +0000 (13:18 +0200)
committerArmin Ronacher <armin.ronacher@active-4.com>
Sat, 26 May 2007 11:18:14 +0000 (13:18 +0200)
--HG--
branch : trunk

jinja/datastructure.py

index a2350abeb24d48109cb7f4905215fdc5ed0b05b1..f66e16d44a5123052fc3ff728e7b55b4e28c3aca 100644 (file)
@@ -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):