Project

General

Profile

« Previous | Next » 

Revision 81

xpath.py: Added deepcopy() before setting value of other branches to traverse

View differences:

scripts/lib/xpath.py
152 152
            for attr in elem.attrs: get(doc, attr, create, last_only, node)
153 153
        
154 154
        for branch in elem.other_branches:
155
            branch = copy.deepcopy(branch)
155 156
            set_value(branch, value(xpath))
156 157
            get(doc, branch, create, last_only, node)
157 158
        

Also available in: Unified diff