Re-export SYSPROTO_CONTROL and PF_SYSTEM in socket on macos (#10814)

This commit is contained in:
Nikita Sobolev
2023-10-01 17:38:44 +03:00
committed by GitHub
parent 1163a5ecfb
commit bd4462cc62
2 changed files with 3 additions and 3 deletions

View File

@@ -129,7 +129,9 @@ if sys.platform != "darwin" or sys.version_info >= (3, 9):
IPV6_RTHDR as IPV6_RTHDR,
)
if sys.platform != "darwin":
if sys.platform == "darwin":
from _socket import PF_SYSTEM as PF_SYSTEM, SYSPROTO_CONTROL as SYSPROTO_CONTROL
else:
from _socket import SO_EXCLUSIVEADDRUSE as SO_EXCLUSIVEADDRUSE
if sys.version_info >= (3, 10):

View File

@@ -31,8 +31,6 @@ select.POLLMSG # system dependent
# Exists at runtime, but missing from stubs
mimetypes.MimeTypes.read_windows_registry
selectors.DefaultSelector.fileno
socket.PF_SYSTEM
socket.SYSPROTO_CONTROL
_ctypes.dlclose
_ctypes.dlopen