Revision 964
Added by Aaron Marcuse-Kubitza almost 13 years ago
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
xml_dom.py: NodeTextEntryIter: Convert empty entries (including entries containing error comments) to None