Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
gh-63161: Fix tokenize.detect_encoding()#139446
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
gh-63161: Fix tokenize.detect_encoding()#139446
Uh oh!
There was an error while loading.Please reload this page.
Conversation
* Support non-UTF-8 shebang and comments if non-UTF-8 encoding is specified.* Detect decoding error for non-UTF-8 encoding.* Detect null bytes in source code.
It is a draft until we fix the Python interpreter. |
38d4b43 intopython:mainUh oh!
There was an error while loading.Please reload this page.
Thanks@serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14. |
* Support non-UTF-8 shebang and comments if non-UTF-8 encoding is specified.* Detect decoding error for non-UTF-8 encoding.* Detect null bytes in source code.(cherry picked from commit38d4b43)Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
GH-140378 is a backport of this pull request to the3.14 branch. |
* Support non-UTF-8 shebang and comments if non-UTF-8 encoding is specified.* Detect decoding error for non-UTF-8 encoding.* Detect null bytes in source code.(cherry picked from commit38d4b43)Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
bedevere-bot commentedOct 20, 2025
|
bedevere-bot commentedOct 20, 2025
|
changing this regex to bytes appears to break code:asottile/pyupgrade#1038 |
This is not a public API. |
Uh oh!
There was an error while loading.Please reload this page.