Skip to content

Commit 0b6df3f

Browse files
aarbouinalexysdussier
authored andcommitted
Fix code for python 2.7
1 parent 8c83b14 commit 0b6df3f

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
@@ -404,7 +404,7 @@ def inline(element):
404404
return _read_blips(blips, alt_text, size)
405405

406406
def _emu_to_pixel(emu):
407-
return round(int(emu) / EMU_PER_PIXEL)
407+
return int(round(float(emu) / EMU_PER_PIXEL))
408408

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

0 commit comments

Comments
 (0)