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

Function _get_child_or_append

lab/cust-elm-classes/main.py:48–53  ·  view source on GitHub ↗
(element, tag)

Source from the content-addressed store, hash-verified

46 return element.xpath(xpath, namespaces=nsmap)
47
48def _get_child_or_append(element, tag):
49 child = _child(element, tag)
50 if child is None:
51 child = _Element(tag)
52 element.append(child)
53 return child
54
55def _get_child_or_first(element, tag):
56 child = _child(element, tag)

Callers 7

CT_PresetGeometry2DClass · 0.85
CT_ShapeClass · 0.85
CT_ShapePropertiesClass · 0.85
CT_TextParagraphClass · 0.85
CT_Transform2DClass · 0.85

Calls 3

_childFunction · 0.85
_ElementFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…