diff --git a/stdlib/3/_winapi.pyi b/stdlib/3/_winapi.pyi index 802c8a1af..a535de150 100644 --- a/stdlib/3/_winapi.pyi +++ b/stdlib/3/_winapi.pyi @@ -66,8 +66,9 @@ def CreatePipe(__pipe_attrs: Any, __size: int) -> Tuple[int, int]: ... def CreateProcess(__application_name: Optional[str], __command_line: Optional[str], __proc_attrs: Any, __thread_attrs: Any, __inherit_handles: bool, __creation_flags: int, __env_mapping: Dict[str, str], __current_directory: Optional[str], __startup_info: Any) -> Tuple[int, int, int, int]: ... def DuplicateHandle(__source_process_handle: int, __source_handle: int, __target_process_handle: int, __desired_access: int, __inherit_handle: bool, __options: int = ...) -> int: ... def ExitProcess(__ExitCode: int) -> NoReturn: ... -def GetACP() -> int: ... -def GetFileType(handle: int) -> int: ... +if sys.version_info >= (3, 7): + def GetACP() -> int: ... + def GetFileType(handle: int) -> int: ... def GetCurrentProcess() -> int: ... def GetExitCodeProcess(__process: int) -> int: ... def GetLastError() -> int: ... diff --git a/tests/stubtest_whitelists/win32-py35.txt b/tests/stubtest_whitelists/win32-py35.txt index 3a6658e1e..2b3ad07d4 100644 --- a/tests/stubtest_whitelists/win32-py35.txt +++ b/tests/stubtest_whitelists/win32-py35.txt @@ -1,7 +1,5 @@ _codecs.oem_decode _codecs.oem_encode -_winapi.GetACP -_winapi.GetFileType ntpath.splitunc os.path.splitunc os.path.splitunc diff --git a/tests/stubtest_whitelists/win32-py36.txt b/tests/stubtest_whitelists/win32-py36.txt index 41e788ad9..9d3c06b67 100644 --- a/tests/stubtest_whitelists/win32-py36.txt +++ b/tests/stubtest_whitelists/win32-py36.txt @@ -1,5 +1,3 @@ -_winapi.GetACP -_winapi.GetFileType hashlib.scrypt ntpath.splitunc os.path.splitunc