Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
bpo-43510: Implement PEP 597 opt-in EncodingWarning.#19481
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
c37295e to6f72b38CompareThe warning is raised only in dev mode.pathlib uses the new `io.text_encoding` helper function.Other libraries will follow.
sys.flags.encoding_warning -> warn_default_encoding-X warn_encoding -> warn_default_encodingPYTHONWARNENCODING -> PYTHONWARNDEFAULTENCODING
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Uh oh!
There was an error while loading.Please reload this page.
CAM-Gerlach commentedMar 23, 2021
Thanks@methane ! I've replied to your comments with updated suggestions to reflect your feedback. |
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
methane commentedMar 25, 2021
I will merge this PR next week if there are no objections. |
bedevere-bot commentedMar 29, 2021
|
bedevere-bot commentedMar 29, 2021
|
bedevere-bot commentedMar 29, 2021
|
methane commentedMar 29, 2021 • edited by bedevere-bot
Loading Uh oh!
There was an error while loading.Please reload this page.
edited by bedevere-bot
Uh oh!
There was an error while loading.Please reload this page.
test_locale fail is unrelating to this PR. Seebpo-37945. |
CAM-Gerlach commentedMar 29, 2021
Thanks@methane ! Excited to see this in Python 3.10. |
We have a vendored version of ConcurrentLogHandler 0.9.1 [1] fromomero-py that we use. This version is from 2013, has a few bugs, anddoesn't work properly with the encoding changes [2,3] made in Python3.10.A new version [4] whose lineage is that of the now unmaintainedConcurrentLogHandler is now available which resolves several of theaforementioned bugs, supports Python 3.10, and is drop in replacementAPI compatible with the previous version. This commit adds a dependencyfor this new version and swaps the default logger class for it inconfiguration. 1.https://pypi.org/project/ConcurrentLogHandler/ 2.https://peps.python.org/pep-0597/ 3.python/cpython#19481 4.https://pypi.org/project/concurrent-log-handler/
Uh oh!
There was an error while loading.Please reload this page.
SeePEP 597.
-X warn_default_encodingandPYTHONWARNDEFAULTENCODING.bpo-43510