Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Update main.py to resolve PYTHONWARNDEFAULTENCODING #61

Merged

Conversation

NebularNerd
Copy link
Contributor

Closes #60

Adds encoding="utf-8" to line 76 to resolve PYTHONWARNDEFAULTENCODING warning. Per the following:

It's something added in to Python 3.10 to help ensure text-based files are treated as UTF-8 for broader cross-platform compatibility. After Python 3.15 encoding="utf-8" will become the default, but leaving it in the code will not cause any issues.

Tested under windows by using set PYTHONWARNDEFAULTENCODING=1 before running, no errors appeared so should all be good.

Adds encoding="utf-8" to resolve warning
@cdgriffith cdgriffith changed the base branch from master to develop April 7, 2024 18:51
@cdgriffith cdgriffith merged commit aabd5a9 into cdgriffith:develop Apr 7, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EncodingWarning when PYTHONWARNDEFAULTENCODING
3 participants