1
0
mirror of https://github.com/kanzure/pdfparanoia.git synced 2024-06-10 04:39:51 +02:00

io.StringIO fallback for py3k

This commit is contained in:
Bryan Bishop 2013-07-19 21:27:06 -05:00
parent 528eae7e46
commit 71aaf23285

View File

@ -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. # Maybe one day pdfquery will be able to save pdf.
# from pdfquery import PDFQuery # from pdfquery import PDFQuery