# HG changeset patch # User aflett # Date 1207330193 0 # Node ID 2a7a19861a8950f871f36fc18e24dff56809169e # Parent 422d0607ba85219e92b258cff041ddef60b5f0f3 fix totally embarassing typo - ctxt not ctx diff --git a/genshi/template/directives.py b/genshi/template/directives.py --- 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))