Project

General

Profile

« Previous | Next » 

Revision 3327

xml_func.py: process(): List out the xml_dom.NodeElemIter iterator so that it won't be affected by concurrent changes to the DOM tree

View differences:

xml_func.py
83 83
    assert db == None or has_rel_funcs # rel_funcs required if db set
84 84
    
85 85
    changed = []
86
    for child in xml_dom.NodeElemIter(node):
86
    for child in list(xml_dom.NodeElemIter(node)):
87 87
        new = process(child, on_error, rel_funcs, db)
88 88
        if new != None and new is not child and xml_dom.is_elem(new):
89 89
            changed.append(new)

Also available in: Unified diff