Skip to content

Commit 556e623

Browse files
authored
Add mmap.MAP_POPULATE from 3.10 (#6964)
1 parent bcd9ca4 commit 556e623

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

stdlib/mmap.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ ALLOCATIONGRANULARITY: int
1313
if sys.platform == "linux":
1414
MAP_DENYWRITE: int
1515
MAP_EXECUTABLE: int
16+
if sys.version_info >= (3, 10):
17+
MAP_POPULATE: int
1618

1719
if sys.platform != "win32":
1820
MAP_ANON: int

tests/stubtest_allowlists/linux-py310.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ select.epoll.register
2020
# Exists at runtime, but missing from stubs
2121
asyncio.PidfdChildWatcher
2222
asyncio.unix_events.PidfdChildWatcher
23-
mmap.MAP_POPULATE
2423
os.EFD_CLOEXEC
2524
os.EFD_NONBLOCK
2625
os.EFD_SEMAPHORE

0 commit comments

Comments
 (0)