From 910cfe4b838852f6e0be7c9124cd48c6ee005620 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Sat, 11 Jan 2020 08:23:42 -0800 Subject: [PATCH] Add msvcrt.locking() and associated constants (#3607) --- stdlib/{3 => 2and3}/msvcrt.pyi | 8 ++++++++ 1 file changed, 8 insertions(+) rename stdlib/{3 => 2and3}/msvcrt.pyi (53%) diff --git a/stdlib/3/msvcrt.pyi b/stdlib/2and3/msvcrt.pyi similarity index 53% rename from stdlib/3/msvcrt.pyi rename to stdlib/2and3/msvcrt.pyi index 6688c37cd..7b4093081 100644 --- a/stdlib/3/msvcrt.pyi +++ b/stdlib/2and3/msvcrt.pyi @@ -2,5 +2,13 @@ # NOTE: These are incomplete! +LK_LOCK: int +LK_NBLCK: int +LK_NBRLCK: int +LK_RLCK: int +LK_UNLCK: int + +def locking(fd: int, mode: int, nbytes: int) -> None: ... + def get_osfhandle(file: int) -> int: ... def open_osfhandle(handle: int, flags: int) -> int: ...