Project

General

Profile

« Previous | Next » 

Revision 4319

xml_func.py: Use new xml_dom.prune_children()

View differences:

xml_func.py
89 89

  
90 90
def passthru(node):
91 91
    '''Passes through single child node. First prunes the node.'''
92
    prune(node)
92
    xml_dom.prune_children(node)
93 93
    children = list(xml_dom.NodeEntryIter(node))
94 94
    if len(children) == 1: xml_dom.replace(node, children[0][1])
95 95

  
......
110 110
        else: func(node)
111 111
    # Pruning optimizations
112 112
    else: # these should not run on functions because they would remove args
113
        prune(node)
113
        xml_dom.prune_children(node)
114 114

  
115 115
def process(node, on_error=exc.reraise, is_rel_func=None, db=None):
116 116
    '''Evaluates the XML functions in an XML tree.

Also available in: Unified diff