Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Map files containing Unicode can fail in mappyfile.load with python2.7 #74
@ianturton I've tried to recreate the error, but currently unable to on Python 2.7
And then uses this later:
I can load the sample CLASS in your pull request without issues. Could you paste an error stack trace?
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 if PY2: 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. Ian…
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#74 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAHeoZNa9iapybYagOS2NzS782wSi07lks5vYX3YgaJpZM4btXpp> .
-- Ian Turton