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

Method _default_comments_xml

src/docx/parts/comments.py:46–51  ·  view source on GitHub ↗

A byte-string containing XML for a default comments part.

(cls)

Source from the content-addressed store, hash-verified

44
45 @classmethod
46 def _default_comments_xml(cls) -> bytes:
47 """A byte-string containing XML for a default comments part."""
48 path = os.path.join(os.path.split(__file__)[0], "..", "templates", "default-comments.xml")
49 with open(path, "rb") as f:
50 xml_bytes = f.read()
51 return xml_bytes

Callers 1

defaultMethod · 0.80

Calls 1

readMethod · 0.80

Tested by

no test coverage detected