diff options
Diffstat (limited to 'recipes')
| -rw-r--r-- | recipes/wmf_images.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/recipes/wmf_images.py b/recipes/wmf_images.py index 3b38bce..5fb3fe1 100644 --- a/recipes/wmf_images.py +++ b/recipes/wmf_images.py @@ -21,9 +21,8 @@ import tempfile # image = libreoffice_wmf_conversion(image, post_process=imagemagick_trim) # return mammoth.images.data_uri(image) # -# -# fileobj = open("document.docx", "rb") -# result = mammoth.convert_to_html(fileobj, convert_image=convert_image) +# with open("document.docx", "rb") as fileobj: +# result = mammoth.convert_to_html(fileobj, convert_image=convert_image) _wmf_extensions = { |
