MCPcopy Index your code
hub / github.com/python-openxml/python-docx / _default_settings_xml

Method _default_settings_xml

src/docx/parts/settings.py:45–50  ·  view source on GitHub ↗

Return a bytestream containing XML for a default settings part.

(cls)

Source from the content-addressed store, hash-verified

43
44 @classmethod
45 def _default_settings_xml(cls):
46 """Return a bytestream containing XML for a default settings part."""
47 path = os.path.join(os.path.split(__file__)[0], "..", "templates", "default-settings.xml")
48 with open(path, "rb") as f:
49 xml_bytes = f.read()
50 return xml_bytes

Callers 1

defaultMethod · 0.80

Calls 1

readMethod · 0.80

Tested by

no test coverage detected