On Wed, 20 Mar 2019 at 00:16, Seth G ***@***.***> wrote:
@ianturton <https://github.com/ianturton> I've tried to recreate the
error, but currently unable to on Python 2.7
The text is already converted to Unicode in py2 with the lines at the top
of the file:
PY2 = sys.version_info < 3
str = unicode # NOQA
And then uses this later:
That works if you use open_file() to load your text but if you open the
file without an encoding and call load() on it then that fails.
@ianturton - recreated. Didn't realise I was testing on py3 at the time. I've updated the parser with the code from your pull request but with a few other changes, and pushed to master. Could you confirm this works for you when you get a chance?