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

Method _remove

src/docx/oxml/table.py:644–648  ·  view source on GitHub ↗

Remove this `w:tc` element from the XML tree.

(self)

Source from the content-addressed store, hash-verified

642 return following_tcs[0] if following_tcs else None
643
644 def _remove(self):
645 """Remove this `w:tc` element from the XML tree."""
646 parent_element = self.getparent()
647 assert parent_element is not None
648 parent_element.remove(self)
649
650 def _remove_trailing_empty_p(self):
651 """Remove last content element from this cell if it's an empty `w:p` element."""

Callers 1

_swallow_next_tcMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected