diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-03-14 18:25:35 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-03-14 20:09:13 +0000 |
| commit | 8f3486e5fc69f2402476b830d21b271a93ed0046 (patch) | |
| tree | 615283d2b5670bf7e13ff53e05d71f43c4722b39 /mammoth/docx | |
| parent | 6cd476e739583c4c370b47d274a87a312d9aed9e (diff) | |
Replace lists.collect with lists.flatten
Diffstat (limited to 'mammoth/docx')
| -rw-r--r-- | mammoth/docx/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mammoth/docx/__init__.py b/mammoth/docx/__init__.py index d944a2d..47e7a21 100644 --- a/mammoth/docx/__init__.py +++ b/mammoth/docx/__init__.py @@ -31,7 +31,7 @@ def _read_notes(zip_file, body_readers): endnotes = _try_read_entry_or_default( zip_file, "word/endnotes.xml", read_endnotes_xml, default=empty_result) - return results.combine([footnotes, endnotes]).map(lists.collect) + return results.combine([footnotes, endnotes]).map(lists.flatten) def _read_document(zip_file, body_readers, notes): with zip_file.open("word/document.xml") as document_fileobj: |
