Mercurial > genshi > mirror
changeset 142:349b3ff5367d trunk
Minor cleanup in XInclude filter.
author | cmlenz |
---|---|
date | Fri, 11 Aug 2006 08:31:58 +0000 |
parents | 520a5b7dd6d2 |
children | 3d4c214c979a |
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