Skip to content

Commit

Permalink
replace cStringIO with BytesIO
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonid Amirov committed Jul 14, 2019
1 parent c32eb89 commit 03a777c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pdfminer/image.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

from cStringIO import StringIO
import struct
import os
import os.path
Expand Down Expand Up @@ -111,7 +110,7 @@ def export_image(self, image):
else:
fp.write(raw_data)
elif is_jbig2:
input_stream = StringIO()
input_stream = BytesIO()
input_stream.write(stream.get_data())
input_stream.seek(0)
reader = JBIG2StreamReader(input_stream)
Expand Down

0 comments on commit 03a777c

Please sign in to comment.