From 7eb5a1378695becf3fe9ef421c529cea65ae715d Mon Sep 17 00:00:00 2001 From: hauntsaninja <> Date: Sat, 16 May 2020 16:24:45 -0700 Subject: [PATCH] python3: remove _subprocess This doesn't seem to exist in Python 3.5, which is the earliest Python3 we support, and this folder is in stdlib/3 --- stdlib/3/_subprocess.pyi | 38 ------------------------ tests/stubtest_whitelists/py3_common.txt | 1 - 2 files changed, 39 deletions(-) delete mode 100644 stdlib/3/_subprocess.pyi diff --git a/stdlib/3/_subprocess.pyi b/stdlib/3/_subprocess.pyi deleted file mode 100644 index 555a8d792a88..000000000000 --- a/stdlib/3/_subprocess.pyi +++ /dev/null @@ -1,38 +0,0 @@ -# Stubs for _subprocess - -# NOTE: These are incomplete! - -from typing import Mapping, Any, Tuple - -CREATE_NEW_CONSOLE: int -CREATE_NEW_PROCESS_GROUP: int -STD_INPUT_HANDLE: int -STD_OUTPUT_HANDLE: int -STD_ERROR_HANDLE: int -SW_HIDE: int -STARTF_USESTDHANDLES: int -STARTF_USESHOWWINDOW: int -INFINITE: int -DUPLICATE_SAME_ACCESS: int -WAIT_OBJECT_0: int - -# TODO not exported by the Python module -class Handle: - def Close(self) -> None: ... - -def GetVersion() -> int: ... -def GetExitCodeProcess(handle: Handle) -> int: ... -def WaitForSingleObject(handle: Handle, timeout: int) -> int: ... -def CreateProcess(executable: str, cmd_line: str, - proc_attrs, thread_attrs, - inherit: int, flags: int, - env_mapping: Mapping[str, str], - curdir: str, - startupinfo: Any) -> Tuple[Any, Handle, int, int]: ... -def GetModuleFileName(module: int) -> str: ... -def GetCurrentProcess() -> Handle: ... -def DuplicateHandle(source_proc: Handle, source: Handle, target_proc: Handle, - target: Any, access: int, inherit: int) -> int: ... -def CreatePipe(pipe_attrs, size: int) -> Tuple[Handle, Handle]: ... -def GetStdHandle(arg: int) -> int: ... -def TerminateProcess(handle: Handle, exit_code: int) -> None: ... diff --git a/tests/stubtest_whitelists/py3_common.txt b/tests/stubtest_whitelists/py3_common.txt index 10365662cc9e..5fdb8b246299 100644 --- a/tests/stubtest_whitelists/py3_common.txt +++ b/tests/stubtest_whitelists/py3_common.txt @@ -3,7 +3,6 @@ _dummy_threading _importlib_modulespec _operator.methodcaller _posixsubprocess.cloexec_pipe -_subprocess _types _weakref.CallableProxyType.__getattr__ _weakref.ProxyType.__getattr__