projects
/
jinja2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d844a1
)
[svn] fixed bug in iteration over none
author
Armin Ronacher
<armin.ronacher@active-4.com>
Sat, 26 May 2007 11:18:14 +0000
(13:18 +0200)
committer
Armin Ronacher
<armin.ronacher@active-4.com>
Sat, 26 May 2007 11:18:14 +0000
(13:18 +0200)
--HG--
branch : trunk
jinja/datastructure.py
patch
|
blob
|
history
diff --git
a/jinja/datastructure.py
b/jinja/datastructure.py
index a2350abeb24d48109cb7f4905215fdc5ed0b05b1..f66e16d44a5123052fc3ff728e7b55b4e28c3aca 100644
(file)
--- 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):