projects
/
jinja2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a90948c
)
[svn] iteration over None does not raise exceptions any more. "fixes" #217
author
Armin Ronacher
<armin.ronacher@active-4.com>
Mon, 5 Mar 2007 14:32:27 +0000
(15:32 +0100)
committer
Armin Ronacher
<armin.ronacher@active-4.com>
Mon, 5 Mar 2007 14:32:27 +0000
(15:32 +0100)
--HG--
branch : trunk
jinja/datastructure.py
patch
|
blob
|
history
diff --git
a/jinja/datastructure.py
b/jinja/datastructure.py
index 0e7a76f13a4faa404c378fda7ca9d0c79fb351df..8d2be5cca152d68c33729f450d0bdf7617fedc9d 100644
(file)
--- 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,