Project

General

Profile

« Previous | Next » 

Revision 4034

xml_dom.py: value(), set_value(): Use new strings.isspace_none_str as sentinel None equivalent, to support cloning text nodes containing a sentinel None

View differences:

lib/xml_dom.py
174 174

  
175 175
def value(node):
176 176
    value_ = util.do_ignore_none(lambda n: n.nodeValue, value_node(node))
177
    if value_ is strings.isspace_none_str: value_ = None # None equiv
177
    if value_ == strings.isspace_none_str: value_ = None # None equiv
178 178
    return value_
179 179

  
180 180
def is_whitespace(node):

Also available in: Unified diff