From 1bc8a38d8b39f87d0d5c7a03b903bf5071732a75 Mon Sep 17 00:00:00 2001 From: Oleg Iarygin Date: Sat, 2 Jul 2022 08:45:31 +0300 Subject: gh-93096: Remove `python -m codecs` (gh-94233) --- Lib/codecs.py | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'Lib/codecs.py') diff --git a/Lib/codecs.py b/Lib/codecs.py index e6ad6e3a052..5a1e7ec8040 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') -- cgit v1.2.3