From 56e20cf5c11339459e0ad5d528243504478ed4e2 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Tue, 10 Jul 2007 14:11:35 +0200 Subject: [PATCH] [svn] fixed bug in the template streaming interface --HG-- branch : trunk --- jinja/datastructure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.26.2