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

Method getAttributeNode

Lib/xml/dom/minidom.py:787–790  ·  view source on GitHub ↗
(self, attrname)

Source from the content-addressed store, hash-verified

785 attr.nodeName = qualifiedName
786
787 def getAttributeNode(self, attrname):
788 if self._attrs is None:
789 return None
790 return self._attrs.get(attrname)
791
792 def getAttributeNodeNS(self, namespaceURI, localName):
793 if self._attrsNS is None:

Callers 10

setAttributeMethod · 0.95
setIdAttributeMethod · 0.95
testAAAMethod · 0.80
testChangeAttrMethod · 0.80
testRemoveNamedItemMethod · 0.80
check_clone_attributeMethod · 0.80
testRenameAttributeMethod · 0.80
testSchemaTypeMethod · 0.80
testSetIdAttributeMethod · 0.80

Calls 1

getMethod · 0.45

Tested by 8

testAAAMethod · 0.64
testChangeAttrMethod · 0.64
testRemoveNamedItemMethod · 0.64
check_clone_attributeMethod · 0.64
testRenameAttributeMethod · 0.64
testSchemaTypeMethod · 0.64
testSetIdAttributeMethod · 0.64