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

Method iter_srels

src/docx/opc/pkgreader.py:35–42  ·  view source on GitHub ↗

Generate a 2-tuple `(source_uri, srel)` for each of the relationships in the package.

(self)

Source from the content-addressed store, hash-verified

33 yield (s.partname, s.content_type, s.reltype, s.blob)
34
35 def iter_srels(self):
36 """Generate a 2-tuple `(source_uri, srel)` for each of the relationships in the
37 package."""
38 for srel in self._pkg_srels:
39 yield (PACKAGE_URI, srel)
40 for spart in self._sparts:
41 for srel in spart.srels:
42 yield (spart.partname, srel)
43
44 @staticmethod
45 def _load_serialized_parts(phys_reader, pkg_srels, content_types):

Calls

no outgoing calls

Tested by 1