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

Function _required_child

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

Add child element with *tag* to *parent* if it doesn't already exist.

(parent, tag)

Source from the content-addressed store, hash-verified

90 element.set(name, default)
91
92def _required_child(parent, tag):
93 """
94 Add child element with *tag* to *parent* if it doesn't already exist.
95 """
96 if _child(parent, tag) is None:
97 parent.append(_Element(tag))
98
99
100# ============================================================================

Callers 4

_initMethod · 0.85
_initMethod · 0.85
_initMethod · 0.85
_initMethod · 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…