diff options
Diffstat (limited to 'mammoth')
| -rw-r--r-- | mammoth/docx/__init__.py | 2 | ||||
| -rw-r--r-- | mammoth/docx/document_xml.py | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/mammoth/docx/__init__.py b/mammoth/docx/__init__.py index 6e1013b..bb26826 100644 --- a/mammoth/docx/__init__.py +++ b/mammoth/docx/__init__.py @@ -14,5 +14,5 @@ def read(fileobj): zip_file = zipfile.ZipFile(fileobj) document_fileobj = zip_file.open("word/document.xml") document_xml = parse_xml(document_fileobj, _namespaces) - return Result(read_document_xml_element(document_xml), []) + return read_document_xml_element(document_xml) diff --git a/mammoth/docx/document_xml.py b/mammoth/docx/document_xml.py index 59f9920..dd018de 100644 --- a/mammoth/docx/document_xml.py +++ b/mammoth/docx/document_xml.py @@ -1,10 +1,11 @@ from .. import documents +from .. import results from .xmlparser import node_types def read_document_xml_element(element, numbering=None): reader = _create_reader(numbering) - return reader(element) + return results.Result(reader(element), []) def _create_reader(numbering): _handlers = {} |
