MCPcopy Index your code
hub / github.com/csev/py4e / decompose

Method decompose

code3/bs4/element.py:909–917  ·  view source on GitHub ↗

Recursively destroys the contents of this tree.

(self)

Source from the content-addressed store, hash-verified

907 text = property(get_text)
908
909 def decompose(self):
910 """Recursively destroys the contents of this tree."""
911 self.extract()
912 i = self
913 while i is not None:
914 next = i.next_element
915 i.__dict__.clear()
916 i.contents = []
917 i = next
918
919 def clear(self, decompose=False):
920 """

Callers 1

clearMethod · 0.45

Calls 2

extractMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected