[svn] fixed typo in recursive for loop
authorArmin Ronacher <armin.ronacher@active-4.com>
Mon, 5 Mar 2007 17:27:06 +0000 (18:27 +0100)
committerArmin Ronacher <armin.ronacher@active-4.com>
Mon, 5 Mar 2007 17:27:06 +0000 (18:27 +0100)
--HG--
branch : trunk

jinja/translators/python.py

index be8eb3a7b3c78b45ce710a371acfad7fd1bb6f49..fd817837130dcfc1f9f5a6d90adca945b889f3d4 100644 (file)
@@ -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(loopbuffer)')
             self.indention -= 1
             write('context[\'loop\'] = LoopContext(None, context[\'loop\'], forloop)')
             write('write(forloop(%s))' % self.handle_node(node.seq))