[svn] iteration over None does not raise exceptions any more. "fixes" #217
authorArmin Ronacher <armin.ronacher@active-4.com>
Mon, 5 Mar 2007 14:32:27 +0000 (15:32 +0100)
committerArmin Ronacher <armin.ronacher@active-4.com>
Mon, 5 Mar 2007 14:32:27 +0000 (15:32 +0100)
--HG--
branch : trunk

jinja/datastructure.py

index 0e7a76f13a4faa404c378fda7ca9d0c79fb351df..8d2be5cca152d68c33729f450d0bdf7617fedc9d 100644 (file)
@@ -201,6 +201,8 @@ class LoopContext(object):
             self.push(seq)
 
     def push(self, seq):
+        if seq in (Undefined, None):
+            seq = ()
         self._stack.append({
             'index':            -1,
             'seq':              seq,