diff options
| author | Michael Williamson <mike@zwobble.org> | 2018-01-23 21:33:19 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2018-01-23 21:33:19 +0000 |
| commit | 804dc4c1666c7f0c24528acf3cf3083a46492e4d (patch) | |
| tree | d27a16311e3999b6a44bdab34255493bdcd72a00 /mammoth/docx/__init__.py | |
| parent | f9e169de5b83a487263c8970872f222401d66765 (diff) | |
Rename file_relationships to package_relationships
Diffstat (limited to 'mammoth/docx/__init__.py')
| -rw-r--r-- | mammoth/docx/__init__.py | 4 |
1 files 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) |
