Project

General

Profile

« Previous | Next » 

Revision 1016

xml_dom.py: Fixed bug in parent() where incorrect variable name was used

View differences:

lib/xml_dom.py
121 121

  
122 122
def parent(node):
123 123
    '''See NodeParentIter for special treatment of root node'''
124
    try: return NodeParentIter(root).next()
124
    try: return NodeParentIter(node).next()
125 125
    except StopIteration: return None
126 126

  
127 127
##### Element nodes containing text

Also available in: Unified diff