summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-03-15 23:27:44 +0000
committerMichael Williamson <mike@zwobble.org>2016-03-15 23:27:44 +0000
commit386da6f61a479cff710018526bb3677963642f45 (patch)
treece2889cbe47935b0706bbda55c4af0b221a98b29
parent171ee01abd37c549cf413c972caa2a2561acf394 (diff)
Fix map usage on Python 30.3.31
-rw-r--r--mammoth/docx/body_xml.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mammoth/docx/body_xml.py b/mammoth/docx/body_xml.py
index 30c2aa1..f3166f5 100644
--- a/mammoth/docx/body_xml.py
+++ b/mammoth/docx/body_xml.py
@@ -214,7 +214,7 @@ def _create_reader(numbering, content_types, relationships, styles, docx_file, f
return _read_blips(blips, alt_text)
def _read_blips(blips, alt_text):
- return _ReadResult.concat(map(lambda blip: _read_blip(blip, alt_text), blips))
+ return _ReadResult.concat(lists.map(lambda blip: _read_blip(blip, alt_text), blips))
def _read_blip(element, alt_text):
return _read_image(lambda: _find_blip_image(element), alt_text)
@@ -314,7 +314,7 @@ def _create_reader(numbering, content_types, relationships, styles, docx_file, f
def _read_xml_elements(nodes):
elements = filter(lambda node: isinstance(node, XmlElement), nodes)
- return _ReadResult.concat(map(read, elements))
+ return _ReadResult.concat(lists.map(read, elements))
return read, _read_xml_elements