]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-70990: Support bytes addresses of Unix sockets in SysLogHandler (GH-154500) main
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 24 Jul 2026 16:54:01 +0000 (19:54 +0300)
committerGitHub <noreply@github.com>
Fri, 24 Jul 2026 16:54:01 +0000 (19:54 +0300)
commit46acb79cd47211192bd52cd994715162d2b6dcf8
tree0efc8cb3ad15ddfe205c35a5c2b78678d612f3ab
parent6cb93bd039ec1c5e0909d2d75cfc4fb3641c693b
gh-70990: Support bytes addresses of Unix sockets in SysLogHandler (GH-154500)

Only a str address was recognized as a Unix domain socket.  A bytes
address, which socket.bind() accepts, fell through to the (host, port)
branch and raised ValueError.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Doc/library/logging.handlers.rst
Lib/logging/handlers.py
Lib/test/test_logging.py
Misc/NEWS.d/next/Library/2026-07-22-17-35-24.gh-issue-70990.xVHKwt.rst [new file with mode: 0644]