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

Method _assert_is_element

Lib/xml/etree/ElementTree.py:248–252  ·  view source on GitHub ↗
(self, e)

Source from the content-addressed store, hash-verified

246 self._children.insert(index, subelement)
247
248 def _assert_is_element(self, e):
249 # Need to refer to the actual Python implementation, not the
250 # shadowing C implementation.
251 if not isinstance(e, _Element_Py):
252 raise TypeError('expected an Element, not %s' % type(e).__name__)
253
254 def remove(self, subelement):
255 """Remove matching subelement.

Callers 4

__setitem__Method · 0.95
appendMethod · 0.95
extendMethod · 0.95
insertMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected