changeset 783:6dc1a751804d

The match filter now only tests `START` events, as `END` events can not be matched and are otherwise processed together with the matched `START` event.
author cmlenz
date Mon, 14 Jul 2008 17:30:23 +0000
parents f69786111cd3
children 64bf70856f02
files genshi/template/markup.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/genshi/template/markup.py
+++ b/genshi/template/markup.py
@@ -244,10 +244,9 @@
 
         for event in stream:
 
-            # We (currently) only care about start and end events for matching
+            # We (currently) only care about start events for matching
             # We might care about namespace events in the future, though
-            if not match_templates or (event[0] is not START and
-                                       event[0] is not END):
+            if not match_templates or event[0] is not START:
                 yield event
                 continue
 
Copyright (C) 2012-2017 Edgewall Software