Mercurial > genshi > genshi-test
diff genshi/template/directives.py @ 687:50adceceff07 experimental-match-fastpaths
land first cut at fast-path matching - needs some cleanup
author | aflett |
---|---|
date | Mon, 25 Feb 2008 20:44:04 +0000 |
parents | 2a52ea05fe9f |
children | 3a4f2fd6f5e2 |
line wrap: on
line diff
--- a/genshi/template/directives.py +++ b/genshi/template/directives.py @@ -450,9 +450,9 @@ attach = classmethod(attach) def __call__(self, stream, ctxt, directives): - ctxt._match_templates.append((self.path.test(ignore_context=True), - self.path, list(stream), self.hints, - self.namespaces, directives)) + ctxt._match_set.add((self.path.test(ignore_context=True), + self.path, list(stream), self.hints, + self.namespaces, directives)) return [] def __repr__(self):