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

Function _get_containing_element

Lib/xml/dom/minidom.py:1195–1201  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

1193
1194
1195def _get_containing_element(node):
1196 c = node.parentNode
1197 while c is not None:
1198 if c.nodeType == Node.ELEMENT_NODE:
1199 return c
1200 c = c.parentNode
1201 return None
1202
1203def _get_containing_entref(node):
1204 c = node.parentNode

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…