From c1cf8bc89c0bda8e2a47601dcdcb0ce7cce9c0db Mon Sep 17 00:00:00 2001 From: Jan Pokorný Date: Wed, 18 Feb 2015 20:15:36 +0100 Subject: filter: make XSLT filter aware of lazystring symbols MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan Pokorný --- filter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/filter.py b/filter.py index 730e532..4b50a61 100644 --- a/filter.py +++ b/filter.py @@ -28,7 +28,7 @@ from .plugin_registry import MetaPlugin, PluginRegistry from .utils import args2tuple, arg2wrapped, \ filterdict_keep, filterdict_pop, \ head_tail, hybridproperty, \ - tuplist + lazystring, tuplist from .utils_func import apply_preserving_depth, \ apply_aggregation_preserving_depth, \ apply_intercalate, \ @@ -514,6 +514,8 @@ class XMLFilter(Filter, MetaPlugin): # in top-down manner if isinstance(sym, tuple): return sym # already proceeded + if isinstance(sym, lazystring): + sym = str(sym) if isinstance(sym, basestring): log.debug("preprocessing {0}".format(sym)) # XXX