Mercurial > genshi > genshi-test
changeset 142:b49cc51999b9
Minor cleanup in XInclude filter.
author | cmlenz |
---|---|
date | Fri, 11 Aug 2006 08:31:58 +0000 |
parents | b3ceaa35fb6b |
children | ef761afcedff |
files | markup/filters.py |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/markup/filters.py +++ b/markup/filters.py @@ -132,17 +132,16 @@ """ self.loader = loader - def __call__(self, stream, ctxt=None, ns_prefixes=None): + def __call__(self, stream, ctxt=None): """Filter the stream, processing any XInclude directives it may contain. + @param stream: the markup event stream to filter @param ctxt: the template context - @param stream: the markup event stream to filter """ from markup.template import Template, TemplateError, TemplateNotFound - if ns_prefixes is None: - ns_prefixes = [] + ns_prefixes = [] in_fallback = False include_href, fallback_stream = None, None namespace = self.NAMESPACE