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

Method _srels_for

src/docx/opc/pkgreader.py:58–62  ·  view source on GitHub ↗

Return |_SerializedRelationships| instance populated with relationships for source identified by `source_uri`.

(phys_reader, source_uri)

Source from the content-addressed store, hash-verified

56
57 @staticmethod
58 def _srels_for(phys_reader, source_uri):
59 """Return |_SerializedRelationships| instance populated with relationships for
60 source identified by `source_uri`."""
61 rels_xml = phys_reader.rels_xml_for(source_uri)
62 return _SerializedRelationships.load_from_xml(source_uri.baseURI, rels_xml)
63
64 @staticmethod
65 def _walk_phys_parts(phys_reader, srels, visited_partnames=None):

Callers 2

from_fileMethod · 0.45
_walk_phys_partsMethod · 0.45

Calls 2

load_from_xmlMethod · 0.80
rels_xml_forMethod · 0.45

Tested by

no test coverage detected