Skip to content

Commit 1bc8a38

Browse files
authored
gh-93096: Remove python -m codecs (gh-94233)
1 parent ec5e253 commit 1bc8a38

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

Lib/codecs.py

-10
Original file line numberDiff line numberDiff line change
@@ -1114,13 +1114,3 @@ def make_encoding_map(decoding_map):
11141114
_false = 0
11151115
if _false:
11161116
import encodings
1117-
1118-
### Tests
1119-
1120-
if __name__ == '__main__':
1121-
1122-
# Make stdout translate Latin-1 output into UTF-8 output
1123-
sys.stdout = EncodedFile(sys.stdout, 'latin-1', 'utf-8')
1124-
1125-
# Have stdin translate Latin-1 input into UTF-8 input
1126-
sys.stdin = EncodedFile(sys.stdin, 'utf-8', 'latin-1')
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Removed undocumented ``python -m codecs``. Use ``python -m unittest
2+
test.test_codecs.EncodedFileTest`` instead.

0 commit comments

Comments
 (0)