[Code Clean] Remove deadcodes about Python3.9 [5/N] (#163644)

As the title stated.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/163644
Approved by: https://github.com/jansel
ghstack dependencies: #163626, #163627, #163629, #163643
This commit is contained in:
FFFrog
2025-09-24 11:24:08 +08:00
committed by PyTorch MergeBot
parent ec0cd81c38
commit 6f34cc040f

View File

@ -47,7 +47,7 @@ LINTER_CODE = "IMPORT_LINTER"
CURRENT_FILE_NAME = os.path.basename(__file__)
_MODULE_NAME_ALLOW_LIST: set[str] = set()
# Add builtin modules.
# Add builtin modules of python.
_MODULE_NAME_ALLOW_LIST.update(sys.stdlib_module_names)
# Add the allowed third party libraries. Please avoid updating this unless you