Mercurial > genshi > mirror
diff genshi/template/directives.py @ 687:3d7288f373bd 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 | 17f9061d0f74 |
children | af57b12e3dd2 |
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):