Skip to content

Commit cf0f940

Browse files
committed
Fix code for python 2.7
1 parent 5dc510e commit cf0f940

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mammoth/docx/body_xml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ def inline(element):
439439
return _read_blips(blips, alt_text, size)
440440

441441
def _emu_to_pixel(emu):
442-
return round(int(emu) / EMU_PER_PIXEL)
442+
return int(round(float(emu) / EMU_PER_PIXEL))
443443

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

0 commit comments

Comments
 (0)