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

Commit 1bc8a38

Browse filesBrowse files
authored
gh-93096: Remove python -m codecs (gh-94233)
1 parent ec5e253 commit 1bc8a38
Copy full SHA for 1bc8a38

File tree

2 files changed

+2
-10
lines changed
Filter options

2 files changed

+2
-10
lines changed

‎Lib/codecs.py

Copy file name to clipboardExpand all lines: Lib/codecs.py
-10Lines changed: 0 additions & 10 deletions
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')
+2Lines changed: 2 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.