[socket] Use Final for constants (#14503)

This commit is contained in:
Semyon Moroz authored and GitHub committed 2025-08-08 21:12:27 +02:00
1 parent ba2e6b454a
commit 4ad58527c2
2 files changed
+512 -519

No files matched your search

+511 -516
View File
File diff suppressed because it is too large. Load diff
+1 -3
View File
@@ -1051,14 +1051,12 @@ if sys.version_info >= (3, 14):
if sys.platform == "linux":
from _socket import (
CAN_RAW_ERR_FILTER as CAN_RAW_ERR_FILTER,
IP_FREEBIND as IP_FREEBIND,
IP_RECVORIGDSTADDR as IP_RECVORIGDSTADDR,
SO_ORIGINAL_DST as SO_ORIGINAL_DST,
VMADDR_CID_LOCAL as VMADDR_CID_LOCAL,
)
__all__ += ["CAN_RAW_ERR_FILTER", "IP_FREEBIND", "IP_RECVORIGDSTADDR", "VMADDR_CID_LOCAL"]
__all__ += ["IP_FREEBIND", "IP_RECVORIGDSTADDR", "VMADDR_CID_LOCAL"]
# Re-exported from errno
EBADF: int