Project

General

Profile

« Previous | Next » 

Revision 6431

xml_func.py: Simplifying functions: Added passthru entries for _and, _or

View differences:

xml_func.py
182 182

  
183 183
#### Logic
184 184

  
185
simplifying_funcs['_and'] = passthru
186
simplifying_funcs['_or'] = passthru
187

  
185 188
def _exists(node):
186 189
    '''Returns whether its node is non-empty'''
187 190
    xml_dom.replace_with_text(node, not xml_dom.is_empty(node))

Also available in: Unified diff