Skip to content

Commit a12b205

Browse files
authored
Add SetErrorMode to msvcrt module (#10842)
1 parent 011f247 commit a12b205

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

stdlib/msvcrt.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,6 @@ if sys.platform == "win32":
2727
def ungetch(__char: bytes | bytearray) -> None: ...
2828
def ungetwch(__unicode_char: str) -> None: ...
2929
def heapmin() -> None: ...
30+
def SetErrorMode(__mode: int) -> int: ...
3031
if sys.version_info >= (3, 10):
3132
def GetErrorMode() -> int: ... # undocumented

tests/stubtest_allowlists/win32.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ _winapi.CreateFileMapping
1010
_winapi.MapViewOfFile
1111
_winapi.OpenFileMapping
1212
_winapi.VirtualQuerySize
13-
msvcrt.SetErrorMode
1413
ssl.SSLSocket.recvmsg
1514
ssl.SSLSocket.recvmsg_into
1615
ssl.SSLSocket.sendmsg

0 commit comments

Comments
 (0)