Project

General

Profile

« Previous | Next » 

Revision 4758

xml_dom.py: replace_with_text(): Support ints and floats

View differences:

lib/xml_dom.py
37 37
def replace(old, new):
38 38
    '''@param new Node|None'''
39 39
    assert old.parentNode != None # not removed from parent tree
40
    if new == None: new = []         
40
    if new == None: new = []
41 41
    else: new = lists.mk_seq(new)
42 42
    
43 43
    olds_parent = old.parentNode

Also available in: Unified diff