Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-93096: Remove python -m codecs #94233

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 3 commits into from
Jul 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions 10 Lib/codecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1114,13 +1114,3 @@ def make_encoding_map(decoding_map):
_false = 0
if _false:
import encodings

### Tests

if __name__ == '__main__':

# Make stdout translate Latin-1 output into UTF-8 output
sys.stdout = EncodedFile(sys.stdout, 'latin-1', 'utf-8')

# Have stdin translate Latin-1 input into UTF-8 input
sys.stdin = EncodedFile(sys.stdin, 'utf-8', 'latin-1')
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Removed undocumented ``python -m codecs``. Use ``python -m unittest
test.test_codecs.EncodedFileTest`` instead.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.