mirror of
https://github.com/kanzure/pdfparanoia.git
synced 2025-07-04 20:37:38 +02:00
io.StringIO fallback for py3k
This commit is contained in:
parent
528eae7e46
commit
71aaf23285
1 changed files with 4 additions and 1 deletions
|
@ -7,7 +7,10 @@ Deals with the existential nature of parsing pdfs.
|
|||
|
||||
"""
|
||||
|
||||
from StringIO import StringIO
|
||||
try:
|
||||
from StringIO import StringIO
|
||||
except ImportError: # py3k
|
||||
from io import StringIO, BytesIO
|
||||
|
||||
# Maybe one day pdfquery will be able to save pdf.
|
||||
# from pdfquery import PDFQuery
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue