Project

General

Profile

« Previous | Next » 

Revision 964

xml_dom.py: NodeTextEntryIter: Convert empty entries (including entries containing error comments) to None

View differences:

lib/xml_dom.py
139 139
    def curr(self):
140 140
        entry = self.iter_.curr()
141 141
        if is_text(entry): value_ = value(entry)
142
        elif is_empty(entry): value_ = None
142 143
        else:
143 144
            assert has_one_child(entry) # TODO: convert to an exception
144 145
            value_ = entry.firstChild

Also available in: Unified diff