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

Method removeAttributeNode

Lib/xml/dom/minidom.py:836–848  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

834 self.removeAttributeNode(attr)
835
836 def removeAttributeNode(self, node):
837 if node is None:
838 raise xml.dom.NotFoundErr()
839 try:
840 self._attrs[node.name]
841 except KeyError:
842 raise xml.dom.NotFoundErr()
843 _clear_id_cache(self)
844 node.unlink()
845 # Restore this since the node is still useful and otherwise
846 # unlinked
847 node.ownerDocument = self.ownerDocument
848 return node
849
850 removeAttributeNodeNS = removeAttributeNode
851

Callers 5

setAttributeNodeMethod · 0.95
removeAttributeMethod · 0.95
removeAttributeNSMethod · 0.95
renameNodeMethod · 0.80

Calls 2

_clear_id_cacheFunction · 0.85
unlinkMethod · 0.45

Tested by 1