I am using the pdfminer tool to convert pdf to .csv (text) and one of the subcommands in the tool pdfinterp.py
still uses the CStringIO and StringIO for string to string translation -
import re
try:
from CStringIO import StringIO
except ImportError:
from StringIO import StringIO
I am using Python 3 so I am aware of the need to change to io and io.StringIO.
How exactly should the above command be re-worded in pdfinterp
to make it functional in Python 3.