MCPcopy Index your code
hub / github.com/pyload/pyload / replaceWithChildren

Method replaceWithChildren

module/lib/BeautifulSoup.py:144–151  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

142 oldParent.insert(myIndex, replaceWith)
143
144 def replaceWithChildren(self):
145 myParent = self.parent
146 myIndex = self.parent.index(self)
147 self.extract()
148 reversedChildren = list(self.contents)
149 reversedChildren.reverse()
150 for child in reversedChildren:
151 myParent.insert(myIndex, child)
152
153 def extract(self):
154 """Destructively rips this element out of the tree."""

Callers

nothing calls this directly

Calls 3

extractMethod · 0.95
indexMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected