python3: remove _subprocess (#4022)

This doesn't seem to exist in Python 3.5, which is the earliest Python3
we support, and this folder is in stdlib/3

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2020-05-18 14:07:08 -07:00
committed by GitHub
parent 1436181587
commit 9a5ba013a1
2 changed files with 0 additions and 39 deletions

View File

@@ -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: ...

View File

@@ -3,7 +3,6 @@ _dummy_threading
_importlib_modulespec
_operator.methodcaller
_posixsubprocess.cloexec_pipe
_subprocess
_types
_weakref.CallableProxyType.__getattr__
_weakref.ProxyType.__getattr__