-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-63161: Fix tokenize.detect_encoding() #139446
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. |
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 commit 38d4b43) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
GH-140378 is a backport of this pull request to the 3.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 commit 38d4b43) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
Uh oh!
There was an error while loading. Please reload this page.