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

Method removeAttribute

Lib/xml/dom/minidom.py:818–825  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

816 setAttributeNodeNS = setAttributeNode
817
818 def removeAttribute(self, name):
819 if self._attrsNS is None:
820 raise xml.dom.NotFoundErr()
821 try:
822 attr = self._attrs[name]
823 except KeyError:
824 raise xml.dom.NotFoundErr()
825 self.removeAttributeNode(attr)
826
827 def removeAttributeNS(self, namespaceURI, localName):
828 if self._attrsNS is None:

Callers 13

cnFunction · 0.80
hnFunction · 0.80
QiFunction · 0.80
eoFunction · 0.80
NFunction · 0.80
SFunction · 0.80
KnFunction · 0.80
QnFunction · 0.80
AFunction · 0.80
SFunction · 0.80
ZeFunction · 0.80
JeFunction · 0.80

Calls 1

removeAttributeNodeMethod · 0.95

Tested by 1

testRemoveAttrMethod · 0.64