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

Method _write_pkg_rels

src/docx/opc/pkgwriter.py:57–59  ·  view source on GitHub ↗

Write the XML rels item for `pkg_rels` ('/_rels/.rels') to the package.

(phys_writer, pkg_rels)

Source from the content-addressed store, hash-verified

55
56 @staticmethod
57 def _write_pkg_rels(phys_writer, pkg_rels):
58 """Write the XML rels item for `pkg_rels` ('/_rels/.rels') to the package."""
59 phys_writer.write(PACKAGE_URI.rels_uri, pkg_rels.xml)
60
61
62class _ContentTypesItem:

Callers 3

writeMethod · 0.80

Calls 1

writeMethod · 0.45

Tested by 2