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

Method removeChild

Lib/xml/dom/minidom.py:1640–1650  ·  view source on GitHub ↗
(self, oldChild)

Source from the content-addressed store, hash-verified

1638 return Node.appendChild(self, node)
1639
1640 def removeChild(self, oldChild):
1641 try:
1642 self.childNodes.remove(oldChild)
1643 except ValueError:
1644 raise xml.dom.NotFoundErr()
1645 oldChild.nextSibling = oldChild.previousSibling = None
1646 oldChild.parentNode = None
1647 if self.documentElement is oldChild:
1648 self.documentElement = None
1649
1650 return oldChild
1651
1652 def _get_documentElement(self):
1653 for node in self.childNodes:

Callers

nothing calls this directly

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected