diff options
author | Oleg Iarygin <oleg@arhadthedev.net> | 2022-07-02 05:45:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-02 05:45:31 (GMT) |
commit | 1bc8a38d8b39f87d0d5c7a03b903bf5071732a75 (patch) | |
tree | f14aeea5ef3955f4359e0db476a4b8e7b6e8a3e9 | |
parent | ec5e253556875640b1ac514e85c545346ac3f1e0 (diff) | |
download | cpython-1bc8a38d8b39f87d0d5c7a03b903bf5071732a75.zip cpython-1bc8a38d8b39f87d0d5c7a03b903bf5071732a75.tar.gz cpython-1bc8a38d8b39f87d0d5c7a03b903bf5071732a75.tar.bz2 |
gh-93096: Remove `python -m codecs` (gh-94233)
-rw-r--r-- | Lib/codecs.py | 10 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Library/2022-06-24-19-40-40.gh-issue-93096.3RlK2d.rst | 2 |
2 files changed, 2 insertions, 10 deletions
diff --git a/Lib/codecs.py b/Lib/codecs.py index e6ad6e3..5a1e7ec 100644 --- a/Lib/codecs.py +++ b/Lib/codecs.py @@ -1114,13 +1114,3 @@ except LookupError: _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') diff --git a/Misc/NEWS.d/next/Library/2022-06-24-19-40-40.gh-issue-93096.3RlK2d.rst b/Misc/NEWS.d/next/Library/2022-06-24-19-40-40.gh-issue-93096.3RlK2d.rst new file mode 100644 index 0000000..f7d9e33 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2022-06-24-19-40-40.gh-issue-93096.3RlK2d.rst @@ -0,0 +1,2 @@ +Removed undocumented ``python -m codecs``. Use ``python -m unittest +test.test_codecs.EncodedFileTest`` instead. |