From f14daaaff7b081c40107044d2415acdfd70c8b5b Mon Sep 17 00:00:00 2001 From: James Webber Date: Sat, 10 Jul 2021 19:40:44 -0400 Subject: [PATCH] removed deprecated modules from PEP 594 from whats_left.sh --- extra_tests/not_impl_gen.py | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/extra_tests/not_impl_gen.py b/extra_tests/not_impl_gen.py index b5037c1c7..781ef0779 100644 --- a/extra_tests/not_impl_gen.py +++ b/extra_tests/not_impl_gen.py @@ -17,6 +17,37 @@ from contextlib import redirect_stdout from pydoc import ModuleScanner +DEAD_BATTERIES = { + "aifc", + "asynchat", + "asyncore", + "audioop", + "binhex", + "cgi", + "cgitb", + "chunk", + "crypt", + "formatter", + "fpectl", + "imghdr", + "imp", + "macpath", + "msilib", + "nntplib", + "nis", + "ossaudiodev", + "parser", + "pipes", + "smtpd", + "sndhdr", + "spwd", + "sunau", + "telnetlib", + "uu", + "xdrlib", +} + + sys.path = [ path for path in sys.path @@ -163,7 +194,7 @@ def gen_modules(): # e.g. printing something or opening a webpage modules = {} for mod_name in scan_modules(): - if mod_name in ("this", "antigravity"): + if mod_name in ("this", "antigravity") or mod_name in DEAD_BATTERIES: continue dir_result = dir_of_mod_or_error(mod_name) if isinstance(dir_result, Exception):