diff options
author | Victor Stinner <vstinner@python.org> | 2024-06-14 18:39:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-14 18:39:50 (GMT) |
commit | 05df063ad80becc1ba6bd07d67b55b5965f32375 (patch) | |
tree | f0c29d986aafdc49366a8627702e10dab54a887e /Lib/subprocess.py | |
parent | ed60ab5fab6d187068cb3e0f0d4192ebf3a228b7 (diff) | |
download | cpython-05df063ad80becc1ba6bd07d67b55b5965f32375.zip cpython-05df063ad80becc1ba6bd07d67b55b5965f32375.tar.gz cpython-05df063ad80becc1ba6bd07d67b55b5965f32375.tar.bz2 |
gh-120417: Fix "imported but unused" linter warnings (#120461)
Add __all__ to the following modules:
importlib.machinery, importlib.util and xml.sax.
Add also "# noqa: F401" in collections.abc,
subprocess and xml.sax.
* Sort __all__; remove collections.abc.__all__; remove private names
* Add tests
Diffstat (limited to 'Lib/subprocess.py')
-rw-r--r-- | Lib/subprocess.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py index b2dcb14..bc08878 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -79,7 +79,7 @@ _can_fork_exec = sys.platform not in {"emscripten", "wasi", "ios", "tvos", "watc if _mswindows: import _winapi - from _winapi import (CREATE_NEW_CONSOLE, CREATE_NEW_PROCESS_GROUP, + from _winapi import (CREATE_NEW_CONSOLE, CREATE_NEW_PROCESS_GROUP, # noqa: F401 STD_INPUT_HANDLE, STD_OUTPUT_HANDLE, STD_ERROR_HANDLE, SW_HIDE, STARTF_USESTDHANDLES, STARTF_USESHOWWINDOW, |