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

Method _default_header_xml

src/docx/parts/hdrftr.py:48–53  ·  view source on GitHub ↗

Return bytes containing XML for a default header part.

(cls)

Source from the content-addressed store, hash-verified

46
47 @classmethod
48 def _default_header_xml(cls):
49 """Return bytes containing XML for a default header part."""
50 path = os.path.join(os.path.split(__file__)[0], "..", "templates", "default-header.xml")
51 with open(path, "rb") as f:
52 xml_bytes = f.read()
53 return xml_bytes

Callers 2

newMethod · 0.80

Calls 1

readMethod · 0.80