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

Method __init__

Lib/xml/etree/ElementTree.py:529–535  ·  view source on GitHub ↗
(self, element=None, file=None)

Source from the content-addressed store, hash-verified

527
528 """
529 def __init__(self, element=None, file=None):
530 if element is not None and not iselement(element):
531 raise TypeError('expected an Element, not %s' %
532 type(element).__name__)
533 self._root = element # first node
534 if file:
535 self.parse(file)
536
537 def getroot(self):
538 """Return root element of this tree."""

Callers

nothing calls this directly

Calls 2

parseMethod · 0.95
iselementFunction · 0.85

Tested by

no test coverage detected