From 804dc4c1666c7f0c24528acf3cf3083a46492e4d Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 23 Jan 2018 21:33:19 +0000 Subject: Rename file_relationships to package_relationships --- mammoth/docx/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mammoth/docx/__init__.py b/mammoth/docx/__init__.py index 326c85b..8ecf8c9 100644 --- a/mammoth/docx/__init__.py +++ b/mammoth/docx/__init__.py @@ -50,14 +50,14 @@ def _read_comments(zip_file, body_readers): def _read_document(zip_file, body_readers, notes, comments): - file_relationships = _try_read_entry_or_default( + package_relationships = _try_read_entry_or_default( zip_file, "_rels/.rels", read_relationships_xml_element, default=Relationships.EMPTY, ) - document_filename = _find_document_filename(zip_file, file_relationships) + document_filename = _find_document_filename(zip_file, package_relationships) with zip_file.open(document_filename) as document_fileobj: document_xml = office_xml.read(document_fileobj) -- cgit v1.2.3