Skip to content

Commit

Permalink
Fix code for python 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
aarbouin committed Apr 27, 2021
1 parent 5dc510e commit cf0f940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mammoth/docx/body_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ def inline(element):
return _read_blips(blips, alt_text, size)

def _emu_to_pixel(emu):
return round(int(emu) / EMU_PER_PIXEL)
return int(round(float(emu) / EMU_PER_PIXEL))

def _read_blips(blips, alt_text, size):
return _ReadResult.concat(lists.map(lambda blip: _read_blip(blip, alt_text, size), blips))
Expand Down

0 comments on commit cf0f940

Please sign in to comment.