From ac53b418af504db248764ca0c991fbae3abd22ca Mon Sep 17 00:00:00 2001 From: James Webber Date: Sat, 10 Jul 2021 23:40:38 -0400 Subject: [PATCH] added comment --- extra_tests/not_impl_gen.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/extra_tests/not_impl_gen.py b/extra_tests/not_impl_gen.py index 781ef0779..77ecd92ba 100644 --- a/extra_tests/not_impl_gen.py +++ b/extra_tests/not_impl_gen.py @@ -17,7 +17,9 @@ from contextlib import redirect_stdout from pydoc import ModuleScanner -DEAD_BATTERIES = { +# modules suggested for deprecation by PEP 594 (www.python.org/dev/peps/pep-0594/) +# some of these might be implemented, but they are not a priority +PEP_594_MODULES = { "aifc", "asynchat", "asyncore", @@ -194,7 +196,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") or mod_name in DEAD_BATTERIES: + if mod_name in ("this", "antigravity") or mod_name in PEP_594_MODULES: continue dir_result = dir_of_mod_or_error(mod_name) if isinstance(dir_result, Exception):