From: Armin Ronacher Date: Mon, 5 Mar 2007 14:32:27 +0000 (+0100) Subject: [svn] iteration over None does not raise exceptions any more. "fixes" #217 X-Git-Tag: 2.0rc1~466 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=783d03f6b1b09cb4d209ec0b3aa04e8fcdfc1664;p=jinja2.git [svn] iteration over None does not raise exceptions any more. "fixes" #217 --HG-- branch : trunk --- diff --git a/jinja/datastructure.py b/jinja/datastructure.py index 0e7a76f..8d2be5c 100644 --- a/jinja/datastructure.py +++ b/jinja/datastructure.py @@ -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,