From 1f15aacde211b38bde1c2bd20f440c45ea46be10 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 27 Jan 2018 17:04:10 +0000 Subject: Reuse _read_relationships --- mammoth/docx/__init__.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'mammoth') 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( -- cgit v1.2.3