aboutsummaryrefslogtreecommitdiff
path: root/mammoth/docx/document_xml.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-12-01 20:29:00 +0000
committerMichael Williamson <mike@zwobble.org>2013-12-01 20:29:00 +0000
commit7a9484ee7f85a0c986f620c5d3cbbd2b11d28df8 (patch)
tree53b972cd32336b188e9eeb95c9ac74495cc3ac01 /mammoth/docx/document_xml.py
parentd3896a5b95f6f90b4181934d16ee0be8b7d8cab4 (diff)
Add better Python 3 support
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 f8fb962..8e8dda8 100644
--- a/mammoth/docx/document_xml.py
+++ b/mammoth/docx/document_xml.py
@@ -1,5 +1,6 @@
from .. import documents
from .. import results
+from .. import lists
from .xmlparser import node_types
@@ -105,7 +106,7 @@ def _create_reader(numbering):
def _read_xml_elements(elements):
return results.combine(map(read, elements)) \
- .map(lambda values: filter(None, values))
+ .map(lambda values: lists.filter(None, values))
return read