Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fail gracefully on Python 2 #6

Merged
merged 1 commit into from
May 31, 2019
Merged

Conversation

mikegerber
Copy link
Contributor

On Python 2, the script fails with an obscure error message because open() does not have an encoding parameter yet. Fail more gracefully by giving a meaningful error message early on Python 2.

On Python 2, the script fails with an obscure error message because open()
does not have an `encoding` parameter yet. Fail more gracefully by giving
a meaningful error message early on Python 2.
@cneud
Copy link
Owner

cneud commented May 31, 2019

Thanks. Hope we can soon finally say bye bye, Python 2.

@cneud cneud merged commit b253134 into cneud:master May 31, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants