mirror of
https://github.com/kanzure/pdfparanoia.git
synced 2024-12-04 23:15:52 +01:00
io.StringIO fallback for py3k
This commit is contained in:
parent
528eae7e46
commit
71aaf23285
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user