-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
a3c014b
Raise a warning when encoding is omitted
methane 050bd1b
add test
methane 939f4a0
wrap encoding=None with text_encoding.
methane 3c99777
Add io.LOCALE_ENCODING = "locale"
methane 4016278
Add EncodingWarning.
methane c5c556c
Add sys.warn_default_encoding
methane d9a08c2
shorten option names
methane 772648e
EncodingWarning extends Warning
methane 1a8e305
make clinic
methane 20966cd
fix test
methane 2b80f42
remove wrong test case
methane 760308c
fix exception_hierarchy.txt
methane a95dff2
Make sys.flags.encoding_warning int
methane 31fb411
Fix text_embed.
methane 096a0a3
Fix test_pickle
methane 99fc938
configparser: use io.text_encoding()
methane 6fdbcbc
Rename option names
methane 3f362bc
Merge remote-tracking branch 'upstream/master' into open-encoding
methane 674feff
Update docs
methane d9d850f
Add NEWS entry
methane 16463ea
Add document for text_encoding and encoding="locale".
methane 412d633
Suppress EncodingWarning from site.py
methane ee883d1
Remove io.LOCALE_ENCODING
methane 6a15e2a
text_encoding() first argument is mandatory.
methane 5d474b4
Apply suggestions from code review
methane c17016f
Simplify _PyPreCmdline and PyConfig
methane 03f971c
Update EncodingWarning doc
methane 9d26b7a
Update document
methane 60e74cf
tweak warning message
methane a505b5f
Use stacklevel=2 for text_encoding() default
methane cbe22e2
fixup
methane a9f9f04
tweak for readability
methane 3bea88f
make clinic
methane d260a4c
fix doc build error
methane 049a269
tweak warning message
methane 018ba64
fixup
methane 3a9623e
Fix subprocess
methane 737059e
Update Doc/library/io.rst
methane 6a62211
Update Doc/library/io.rst
methane 54c7dc6
Update Doc/library/io.rst
methane 5b2830b
Update Doc/library/io.rst
methane 14f2a6e
Apply suggestions from code review
methane 06e2a32
Move EncodingWarnings
methane 27d49d2
fix comment
methane 80f4644
fix text_encoding() docstring
methane 6ad0e7f
update what's new
methane 73b27f1
fix doc build
methane c149d65
Update Doc/library/io.rst
methane 4eb7655
Apply suggestions from code review
methane e3bce76
Apply suggestions from code review
methane c089fd7
Update Doc/library/io.rst
methane File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw what you did there! :-D Mention it in the final commit message (I didn't read your 24 commit messages, GitHub UI isn't convenient for that :-( ).