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

Method _text_of_element

src/pptx/oxml/coreprops.py:282–288  ·  view source on GitHub ↗
(self, property_name: str)

Source from the content-addressed store, hash-verified

280 element.text = value
281
282 def _text_of_element(self, property_name: str) -> str:
283 element = getattr(self, property_name)
284 if element is None:
285 return ""
286 if element.text is None:
287 return ""
288 return element.text

Callers 11

author_textMethod · 0.95
category_textMethod · 0.95
comments_textMethod · 0.95
contentStatus_textMethod · 0.95
identifier_textMethod · 0.95
keywords_textMethod · 0.95
language_textMethod · 0.95
lastModifiedBy_textMethod · 0.95
subject_textMethod · 0.95
title_textMethod · 0.95
version_textMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected