Skip to content

Commit 386da6f

Browse files
committed
Fix map usage on Python 3
1 parent 171ee01 commit 386da6f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mammoth/docx/body_xml.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def inline(element):
214214
return _read_blips(blips, alt_text)
215215

216216
def _read_blips(blips, alt_text):
217-
return _ReadResult.concat(map(lambda blip: _read_blip(blip, alt_text), blips))
217+
return _ReadResult.concat(lists.map(lambda blip: _read_blip(blip, alt_text), blips))
218218

219219
def _read_blip(element, alt_text):
220220
return _read_image(lambda: _find_blip_image(element), alt_text)
@@ -314,7 +314,7 @@ def read(element):
314314

315315
def _read_xml_elements(nodes):
316316
elements = filter(lambda node: isinstance(node, XmlElement), nodes)
317-
return _ReadResult.concat(map(read, elements))
317+
return _ReadResult.concat(lists.map(read, elements))
318318

319319
return read, _read_xml_elements
320320

0 commit comments

Comments
 (0)