Skip to content

Commit

Permalink
Merge pull request #14 from gonzocoder/patch-1
Browse files Browse the repository at this point in the history
Update docx2txt.py
  • Loading branch information
ankushshah89 authored May 26, 2017
2 parents 8b278e9 + 509158e commit f71c423
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docx2txt/docx2txt.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def process(docx, img_dir=None):
_, extension = os.path.splitext(fname)
if extension in [".jpg", ".jpeg", ".png", ".bmp"]:
dst_fname = os.path.join(img_dir, os.path.basename(fname))
with open(dst_fname, "w") as dst_f:
with open(dst_fname, "wb") as dst_f:
dst_f.write(zipf.read(fname))

zipf.close()
Expand Down

0 comments on commit f71c423

Please sign in to comment.