[svn] fixed bug in the template streaming interface
authorArmin Ronacher <armin.ronacher@active-4.com>
Tue, 10 Jul 2007 12:11:35 +0000 (14:11 +0200)
committerArmin Ronacher <armin.ronacher@active-4.com>
Tue, 10 Jul 2007 12:11:35 +0000 (14:11 +0200)
--HG--
branch : trunk

jinja/datastructure.py

index 5946db8f8ba02b3f6ef61359b740102e0fdc475a..11d0f98845805423bb3d9c4db422df985a95d0eb 100644 (file)
@@ -588,7 +588,7 @@ class TemplateStream(object):
                     if c_size >= size:
                         raise StopIteration()
             except StopIteration:
-                if not size:
+                if not c_size:
                     raise
             return u''.join(buf)