Revision b2d60e49 ncclient/xml_.py

b/ncclient/xml_.py
71 71
    return xml if xml.startswith('<?xml') else '<?xml version="1.0" encoding="%s"?>%s' % (encoding, xml)
72 72

  
73 73
def to_ele(x):
74
    """Convert XML to `~xml.etree.ElementTree.Element`. If passed an
75
    `~xml.etree.ElementTree.Element` simply returns that.
74
    """Convert XML to `~xml.etree.ElementTree.Element`. If passed an `~xml.etree.ElementTree.Element` simply returns that.
76 75
    
77 76
    :arg x: the XML document or element
78 77
    :type x: `string` or `~xml.etree.ElementTree.Element`

Also available in: Unified diff