changeset 705:2a7a19861a89 experimental-match-fastpaths

fix totally embarassing typo - ctxt not ctx
author aflett
date Fri, 04 Apr 2008 17:29:53 +0000
parents 422d0607ba85
children 0cc3f1eabe13
files genshi/template/directives.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/genshi/template/directives.py
+++ b/genshi/template/directives.py
@@ -457,10 +457,10 @@
     attach = classmethod(attach)
 
     def __call__(self, stream, directives, ctxt, **vars):
-        if ctx._match_set is None:
+        if ctxt._match_set is None:
             # lazily create MatchSet so that it doesn't burden the
             # _match filter when there are no py:matches defined.
-            ctx._match_set = MatchSet()
+            ctxt._match_set = MatchSet()
         ctxt._match_set.add((self.path.test(ignore_context=True),
                              self.path, list(stream), self.hints,
                              self.namespaces, directives))
Copyright (C) 2012-2017 Edgewall Software