Mercurial > genshi > genshi-test
diff markup/filters.py @ 145:56d534eb53f9
* Fix error in expression evaluation when the expression evaluates to an iterable that does not produce event tuples.
* The first location step in path expressions longer assumes the `descendant::` axis, but rather the `child::` axis.
* Import cleanups.
author | cmlenz |
---|---|
date | Tue, 15 Aug 2006 09:52:47 +0000 |
parents | b49cc51999b9 |
children | 41db0260ebb1 |
line wrap: on
line diff
--- a/markup/filters.py +++ b/markup/filters.py @@ -13,16 +13,14 @@ """Implementation of a number of stream filters.""" -from itertools import chain try: frozenset except NameError: from sets import ImmutableSet as frozenset import re -from markup.core import Attributes, Markup, Namespace, escape, stripentities -from markup.core import END, END_NS, START, START_NS, TEXT -from markup.path import Path +from markup.core import Attributes, Namespace, stripentities +from markup.core import END, END_NS, START, START_NS __all__ = ['HTMLSanitizer', 'IncludeFilter'] @@ -139,7 +137,7 @@ @param stream: the markup event stream to filter @param ctxt: the template context """ - from markup.template import Template, TemplateError, TemplateNotFound + from markup.template import TemplateError, TemplateNotFound ns_prefixes = [] in_fallback = False