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

Function _get_child_or_insert

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

Source from the content-addressed store, hash-verified

60 return child
61
62def _get_child_or_insert(element, tag, idx):
63 child = _child(element, tag)
64 if child is None:
65 child = _Element(tag)
66 element.insert(idx, child)
67 return child
68
69def _nsmap(*prefixes):
70 """

Callers 1

CT_TextBodyClass · 0.85

Calls 3

_childFunction · 0.85
_ElementFunction · 0.85
insertMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…