MCPcopy Index your code
hub / github.com/python-openxml/python-docx / _remove_child

Method _remove_child

src/docx/oxml/xmlchemy.py:572–573  ·  view source on GitHub ↗
(obj: BaseOxmlElement)

Source from the content-addressed store, hash-verified

570 """Add a ``_remove_x()`` method to the element class for this child element."""
571
572 def _remove_child(obj: BaseOxmlElement):
573 obj.remove_all(self._nsptagname)
574
575 _remove_child.__doc__ = ("Remove all ``<%s>`` child elements.") % self._nsptagname
576 self._add_to_class(self._remove_method_name, _remove_child)

Callers

nothing calls this directly

Calls 1

remove_allMethod · 0.80

Tested by

no test coverage detected