Project

General

Profile

« Previous | Next » 

Revision 4030

xml_dom.py: is_whitespace(): Support text nodes whose value() is None by using .nodeValue instead

View differences:

lib/xml_dom.py
177 177
    if value_ is strings.none_str: value_ = None # text node's None
178 178
    return value_
179 179

  
180
def is_whitespace(node): return is_text_node(node) and value(node).isspace()
180
def is_whitespace(node): return is_text_node(node) and node.nodeValue.isspace()
181 181

  
182 182
def set_value(node, value):
183 183
    value_node_ = value_node(node)

Also available in: Unified diff