diff options
| author | Michael Williamson <mike@zwobble.org> | 2018-01-27 17:04:10 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2018-01-27 17:04:10 +0000 |
| commit | 1f15aacde211b38bde1c2bd20f440c45ea46be10 (patch) | |
| tree | 59721c7aeba87faffbe5ab6f4e5dc0cc4df57de7 /mammoth/docx/__init__.py | |
| parent | 8f0d1c25178708d6b3878c7a433f07742bbba11c (diff) | |
Reuse _read_relationships
Diffstat (limited to 'mammoth/docx/__init__.py')
| -rw-r--r-- | mammoth/docx/__init__.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/mammoth/docx/__init__.py b/mammoth/docx/__init__.py index 2bee161..dee5be4 100644 --- a/mammoth/docx/__init__.py +++ b/mammoth/docx/__init__.py @@ -53,13 +53,7 @@ def _read_comments(read_part_with_body): def _read_document(zip_file, read_part_with_body, notes, comments): - package_relationships = _try_read_entry_or_default( - zip_file, - "_rels/.rels", - read_relationships_xml_element, - default=Relationships.EMPTY, - ) - + package_relationships = _read_relationships(zip_file, "_rels/.rels") document_filename = _find_document_filename(zip_file, package_relationships) return read_part_with_body( |
