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

Method unlink

Lib/xml/dom/minidom.py:263–270  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

261 # minidom-specific API:
262
263 def unlink(self):
264 self.parentNode = self.ownerDocument = None
265 if self.childNodes:
266 for child in self.childNodes:
267 child.unlink()
268 self.childNodes = NodeList()
269 self.previousSibling = None
270 self.nextSibling = None
271
272 # A Node is its own context manager, to ensure that an unlink() call occurs.
273 # This is similar to how a file object works.

Callers 15

__exit__Method · 0.95
prepFunction · 0.45
initializeStreamsFunction · 0.45
unpack_depsFunction · 0.45
clone_testbedFunction · 0.45
compile_fileFunction · 0.45
_rmtree_unsafeFunction · 0.45
_rmtree_safe_fd_stepFunction · 0.45
moveFunction · 0.45
makelink_with_filterMethod · 0.45
nextfileMethod · 0.45
_readlineMethod · 0.45

Calls 1

NodeListClass · 0.85

Tested by 15

make_nrcMethod · 0.36
test_marshalFunction · 0.36
temporary_filenameFunction · 0.36
check_swap_fdsMethod · 0.36
test_poll_unit_testsMethod · 0.36
tearDownMethod · 0.36
test_mixed_namespaceMethod · 0.36
tearDownMethod · 0.36
tearDownMethod · 0.36
cleanupMethod · 0.36