From 3030f013be6a38aa48f09eef934ed59e58248ad7 Mon Sep 17 00:00:00 2001 From: Max Muoto Date: Sat, 20 Jul 2024 16:07:00 -0500 Subject: [PATCH] Fix `syslog` 3.13 issues (#12380) --- stdlib/@tests/stubtest_allowlists/linux-py313.txt | 5 ----- stdlib/syslog.pyi | 12 +++++++----- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/stdlib/@tests/stubtest_allowlists/linux-py313.txt b/stdlib/@tests/stubtest_allowlists/linux-py313.txt index 435bac4aa..bc2645131 100644 --- a/stdlib/@tests/stubtest_allowlists/linux-py313.txt +++ b/stdlib/@tests/stubtest_allowlists/linux-py313.txt @@ -24,8 +24,3 @@ posixpath.splitroot readline.backend stat.SF_SUPPORTED stat.SF_SYNTHETIC -syslog.LOG_INSTALL -syslog.LOG_LAUNCHD -syslog.LOG_NETINFO -syslog.LOG_RAS -syslog.LOG_REMOTEAUTH diff --git a/stdlib/syslog.pyi b/stdlib/syslog.pyi index 1b1d4cfa1..1e0d0d383 100644 --- a/stdlib/syslog.pyi +++ b/stdlib/syslog.pyi @@ -38,11 +38,13 @@ if sys.platform != "win32": if sys.version_info >= (3, 13): LOG_FTP: Final = 88 - LOG_INSTALL: Final = 112 - LOG_LAUNCHD: Final = 192 - LOG_NETINFO: Final = 96 - LOG_RAS: Final = 120 - LOG_REMOTEAUTH: Final = 104 + + if sys.platform == "darwin": + LOG_INSTALL: Final = 112 + LOG_LAUNCHD: Final = 192 + LOG_NETINFO: Final = 96 + LOG_RAS: Final = 120 + LOG_REMOTEAUTH: Final = 104 def LOG_MASK(pri: int, /) -> int: ... def LOG_UPTO(pri: int, /) -> int: ...