From 386da6f61a479cff710018526bb3677963642f45 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 15 Mar 2016 23:27:44 +0000 Subject: Fix map usage on Python 3 --- mammoth/docx/body_xml.py | 4 ++-- 1 file 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 -- cgit v1.2.3