comparison genshi/template/markup.py @ 798:c690de5abafd stable-0.5.x

Ported [914], [970], and [971] to 0.5.x branch.
author cmlenz
date Thu, 15 Jan 2009 23:50:09 +0000
parents cf0a0a066aec
children 1b6968d31089 98a1b03bbc89
comparison
equal deleted inserted replaced
797:890dc65c3e75 798:c690de5abafd
242 tail[:] = [event] 242 tail[:] = [event]
243 break 243 break
244 244
245 for event in stream: 245 for event in stream:
246 246
247 # We (currently) only care about start and end events for matching 247 # We (currently) only care about start events for matching
248 # We might care about namespace events in the future, though 248 # We might care about namespace events in the future, though
249 if not match_templates or (event[0] is not START and 249 if not match_templates or event[0] is not START:
250 event[0] is not END):
251 yield event 250 yield event
252 continue 251 continue
253 252
254 for idx, (test, path, template, hints, namespaces, directives) \ 253 for idx, (test, path, template, hints, namespaces, directives) \
255 in enumerate(match_templates): 254 in enumerate(match_templates):
Copyright (C) 2012-2017 Edgewall Software