aboutsummaryrefslogtreecommitdiff
path: root/mammoth/docx/document_xml.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-12-01 13:43:43 +0000
committerMichael Williamson <mike@zwobble.org>2013-12-01 13:43:43 +0000
commitb160de0cdd0ec662a64718ab796a51cd12924e13 (patch)
tree69e91bfa21bb8ad01b55ccd4849d8b983f5cabd8 /mammoth/docx/document_xml.py
parent24c6649d0946f2d7bb8157b75caec42b60a2f1e7 (diff)
Return result from read_document_xml_element
Diffstat (limited to 'mammoth/docx/document_xml.py')
-rw-r--r--mammoth/docx/document_xml.py3
1 files changed, 2 insertions, 1 deletions
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 = {}