MCPcopy Create free account
hub / github.com/scanny/python-pptx / _child_list

Function _child_list

lab/cust-elm-classes/main.py:40–46  ·  view source on GitHub ↗

Return list containing the direct children of *element* having *child_tagname*.

(element, child_tagname)

Source from the content-addressed store, hash-verified

38 return matching_children[0] if len(matching_children) else None
39
40def _child_list(element, child_tagname):
41 """
42 Return list containing the direct children of *element* having
43 *child_tagname*.
44 """
45 xpath = './%s' % child_tagname
46 return element.xpath(xpath, namespaces=nsmap)
47
48def _get_child_or_append(element, tag):
49 child = _child(element, tag)

Callers 1

CT_TextBodyClass · 0.85

Calls 1

xpathMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…