Mercurial > genshi > mirror
changeset 783:2ee324467afe trunk
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 | ae44bf4d1638 |
children | 36fb0a57fe74 |
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