MCPcopy Index your code
hub / github.com/python/cpython / getroot

Method getroot

Lib/xml/etree/ElementTree.py:537–539  ·  view source on GitHub ↗

Return root element of this tree.

(self)

Source from the content-addressed store, hash-verified

535 self.parse(file)
536
537 def getroot(self):
538 """Return root element of this tree."""
539 return self._root
540
541 def _setroot(self, element):
542 """Replace root element of this tree.

Callers 13

test_setrootMethod · 0.95
test_interfaceMethod · 0.95
dumpFunction · 0.95
test_childrenMethod · 0.80
_my_loaderMethod · 0.80
test_xml_c14n2Method · 0.80
default_loaderFunction · 0.80
includeFunction · 0.80

Calls

no outgoing calls

Tested by 9

test_setrootMethod · 0.76
test_interfaceMethod · 0.76
test_childrenMethod · 0.64
_my_loaderMethod · 0.64
test_xml_c14n2Method · 0.64