8000 Fix `syslog` 3.13 issues (#12380) · python/typeshed@3030f01 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3030f01

Browse files
authored
Fix syslog 3.13 issues (#12380)
1 parent 8ccf26b commit 3030f01

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

stdlib/@tests/stubtest_allowlists/linux-py313.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,3 @@ posixpath.splitroot
2424
readline.backend
2525
stat.SF_SUPPORTED
2626
stat.SF_SYNTHETIC
27-
syslog.LOG_INSTALL
28-
syslog.LOG_LAUNCHD
29-
syslog.LOG_NETINFO
30-
syslog.LOG_RAS
31-
syslog.LOG_REMOTEAUTH

stdlib/syslog.pyi

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,13 @@ if sys.platform != "win32":
3838

3939
if sys.version_info >= (3, 13):
4040
LOG_FTP: Final = 88
41-
LOG_INSTALL: Final = 112
42-
LOG_LAUNCHD: Final = 192
43-
LOG_NETINFO: Final = 96
44-
LOG_RAS: Final = 120
45-
LOG_REMOTEAUTH: Final = 104
41+
42+
if sys.platform == "darwin":
43+
LOG_INSTALL: Final = 112
44+
LOG_LAUNCHD: Final = 192
45+
LOG_NETINFO: Final = 96
46+
LOG_RAS: Final = 120
47+
LOG_REMOTEAUTH: Final = 104
4648

4749
def LOG_MASK(pri: int, /) -> int: ...
4850
def LOG_UPTO(pri: int, /) -> int: ...

0 commit comments

Comments
 (0)
0