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

EncodeWarning's when running on python >= 3.11 #985

Open
rasjani opened this issue Jan 29, 2024 · 0 comments
Open

EncodeWarning's when running on python >= 3.11 #985

rasjani opened this issue Jan 29, 2024 · 0 comments

Comments

@rasjani
Copy link

rasjani commented Jan 29, 2024

If PYTHONWARNDEFAULTENCODING environment variable is set to true; following 2 warnings are printed to stderr:

/Users/rasjani/src/omat/diff-filter/venv/lib/python3.11/site-packages/invoke/runners.py:1674: EncodingWarning: UTF-8 Mode affects locale.getpreferredencoding(). Consider locale.getencoding() instead.
  encoding = locale.getpreferredencoding(False)
/Users/rasjani/src/omat/diff-filter/venv/lib/python3.11/site-packages/yamllint/config.py:41: EncodingWarning: 'encoding' argument not specified
  with open(file) as f:
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

No branches or pull requests

1 participant