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

Function _required_attribute

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

Add attribute with default value to element if it doesn't already exist.

(element, name, default)

Source from the content-addressed store, hash-verified

83 return '{%s}%s' % (uri, tagroot)
84
85def _required_attribute(element, name, default):
86 """
87 Add attribute with default value to element if it doesn't already exist.
88 """
89 if element.get(name) is None:
90 element.set(name, default)
91
92def _required_child(parent, tag):
93 """

Callers 2

_initMethod · 0.85
_initMethod · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…