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

Function findtext

Lib/xml/etree/ElementPath.py:416–423  ·  view source on GitHub ↗
(elem, path, default=None, namespaces=None)

Source from the content-addressed store, hash-verified

414# Find text for first matching object.
415
416def findtext(elem, path, default=None, namespaces=None):
417 try:
418 elem = next(iterfind(elem, path, namespaces))
419 if elem.text is None:
420 return ""
421 return elem.text
422 except StopIteration:
423 return default

Callers

nothing calls this directly

Calls 1

iterfindFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…