Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make syslog setlogmask, LOG_MASK and LOG_UPTO positional-only #10756

Merged
merged 1 commit into from
Sep 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions stdlib/syslog.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ if sys.platform != "win32":
LOG_USER: Literal[8]
LOG_UUCP: Literal[64]
LOG_WARNING: Literal[4]
def LOG_MASK(a: int) -> int: ...
def LOG_UPTO(a: int) -> int: ...
def LOG_MASK(__pri: int) -> int: ...
def LOG_UPTO(__pri: int) -> int: ...
def closelog() -> None: ...
def openlog(ident: str = ..., logoption: int = ..., facility: int = ...) -> None: ...
def setlogmask(x: int) -> int: ...
def setlogmask(__maskpri: int) -> int: ...
@overload
def syslog(priority: int, message: str) -> None: ...
@overload
Expand Down
3 changes: 0 additions & 3 deletions tests/stubtest_allowlists/darwin-py312.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ posix.PRIO_DARWIN_BG
posix.PRIO_DARWIN_NONUI
posix.PRIO_DARWIN_PROCESS
posix.PRIO_DARWIN_THREAD
syslog.LOG_MASK
syslog.LOG_UPTO
syslog.setlogmask
tty.__all__
tty.cfmakecbreak
tty.cfmakeraw
Expand Down
3 changes: 0 additions & 3 deletions tests/stubtest_allowlists/linux-py312.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ signal.sigtimedwait
signal.sigwaitinfo
ssl.OP_ENABLE_KTLS
ssl.Options.OP_ENABLE_KTLS
syslog.LOG_MASK
syslog.LOG_UPTO
syslog.setlogmask
tty.__all__
tty.cfmakecbreak
tty.cfmakeraw
Expand Down