MCPcopy Index your code
hub / github.com/clips/pattern / _attr

Function _attr

pattern/db/__init__.py:1460–1461  ·  view source on GitHub ↗
(node, attribute, default="")

Source from the content-addressed store, hash-verified

1458 The given field function can be used to rename field names.
1459 """
1460 def _attr(node, attribute, default=""):
1461 return node.getAttribute(attribute) or default
1462 # parseString() will decode entities, no need for decode_entities().
1463 from xml.dom.minidom import parseString
1464 dom = parseString(encode_utf8(xml))

Callers 1

parse_xmlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…