diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2015-05-28 22:52:10 +0200 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2015-05-29 20:00:56 +0200 |
commit | 30a527cf03d2f639c7f11953e3a6a5aefc36bc37 (patch) | |
tree | e6de4469c5765386b243ea64b66da448545fc016 | |
parent | a218ead71d7f53a2aa7b134573792dcf3579bb40 (diff) | |
download | clufter-30a527cf03d2f639c7f11953e3a6a5aefc36bc37.tar.gz clufter-30a527cf03d2f639c7f11953e3a6a5aefc36bc37.tar.xz clufter-30a527cf03d2f639c7f11953e3a6a5aefc36bc37.zip |
filter: _xslt_preprocess drop unused code
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rw-r--r-- | filter.py | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -608,22 +608,13 @@ class XMLFilter(Filter, MetaPlugin): elif do_mix > 1 and will_mix: # and not parent do_mix = 1 - #toplevel = [] - #if len(ret) and parent: - # top = filter(lambda x: x.tag in TOP_LEVEL_XSL, ret) - # for e in top: - # toplevel.append(e) - # ret.remove(e) - # note that when do_mix, nested top_levels are actually propagated # back, which is the inverse of what we are doing here if parent and isinstance(parent[0], etree._Element) and not do_mix: top = filter(lambda x: x.tag in TOP_LEVEL_XSL, parent[0]) for e in top: - #print "at", sym, "appending", etree.tostring(e) + #print "at", etree.tostring(ret), "appending", etree.tostring(e) ret.append(deepcopy(e)) - #for e in toplevel: - # parent[0].append(e) log.debug("hooks {0}".format(hooks)) return (ret, hooks, do_mix) |