From: Armin Ronacher Date: Tue, 10 Jul 2007 12:11:35 +0000 (+0200) Subject: [svn] fixed bug in the template streaming interface X-Git-Tag: 2.0rc1~285 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=56e20cf5c11339459e0ad5d528243504478ed4e2;p=jinja2.git [svn] fixed bug in the template streaming interface --HG-- branch : trunk --- diff --git a/jinja/datastructure.py b/jinja/datastructure.py index 5946db8..11d0f98 100644 --- a/jinja/datastructure.py +++ b/jinja/datastructure.py @@ -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)