diff markup/template.py @ 93:08d77c7725e2 trunk

Minor bugfi x follow-up to [97]: don't yield the terminator event from the whitespace filter.
author cmlenz
date Thu, 20 Jul 2006 23:33:51 +0000
parents 01d36818bb3d
children 2fe86a99947f
line wrap: on
line diff
--- a/markup/template.py
+++ b/markup/template.py
@@ -366,8 +366,8 @@
     def __call__(self, stream, ctxt, directives):
         iterable = self.expr.evaluate(ctxt)
         if iterable is not None:
+            scope = {}
             stream = list(stream)
-            scope = {}
             targets = self.targets
             for item in iter(iterable):
                 if len(targets) == 1:
Copyright (C) 2012-2017 Edgewall Software