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

Method rels_xml_for

src/docx/opc/phys_pkg.py:61–68  ·  view source on GitHub ↗

Return rels item XML for source with `source_uri`, or None if the item has no rels item.

(self, source_uri)

Source from the content-addressed store, hash-verified

59 return self.blob_for(CONTENT_TYPES_URI)
60
61 def rels_xml_for(self, source_uri):
62 """Return rels item XML for source with `source_uri`, or None if the item has no
63 rels item."""
64 try:
65 rels_xml = self.blob_for(source_uri.rels_uri)
66 except IOError:
67 rels_xml = None
68 return rels_xml
69
70
71class _ZipPkgReader(PhysPkgReader):

Calls 1

blob_forMethod · 0.95