projects
/
jinja2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e3f805
)
[svn] fixed typo in recursive for loop
author
Armin Ronacher
<armin.ronacher@active-4.com>
Mon, 5 Mar 2007 17:27:06 +0000
(18:27 +0100)
committer
Armin Ronacher
<armin.ronacher@active-4.com>
Mon, 5 Mar 2007 17:27:06 +0000
(18:27 +0100)
--HG--
branch : trunk
jinja/translators/python.py
patch
|
blob
|
history
diff --git
a/jinja/translators/python.py
b/jinja/translators/python.py
index be8eb3a7b3c78b45ce710a371acfad7fd1bb6f49..fd817837130dcfc1f9f5a6d90adca945b889f3d4 100644
(file)
--- a/
jinja/translators/python.py
+++ b/
jinja/translators/python.py
@@
-303,7
+303,7
@@
class PythonTranslator(Translator):
# call recursive for loop!
if node.recursive:
write('context[\'loop\'].pop()')
- write('return u\'\'.join(buffer)')
+ write('return u\'\'.join(
loop
buffer)')
self.indention -= 1
write('context[\'loop\'] = LoopContext(None, context[\'loop\'], forloop)')
write('write(forloop(%s))' % self.handle_node(node.seq))