]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-127712: Fix `secure` argument of `logging.handlers.SMTPHandler` (GH-127726)
authors-hamann <10639154+s-hamann@users.noreply.github.com>
Mon, 10 Feb 2025 12:34:27 +0000 (12:34 +0000)
committerGitHub <noreply@github.com>
Mon, 10 Feb 2025 12:34:27 +0000 (12:34 +0000)
commitd7672e5d5a7b9580a72dbe75d3a9e8840bcc604c
tree4f932c5b92fff1d245c3c4f1592b21c82ecd6db9
parent94cd2e0ddeff83dee3254ca356d9e4396927d075
gh-127712: Fix `secure` argument of `logging.handlers.SMTPHandler` (GH-127726)

GH-127712: Fix `secure` argument of `logging.handlers.SMTPHandler`

Python 3.12 removed support for the `keyfile` and `certfile` parameters
in `smtplib.SMTP.starttls()`, requiring a `ssl.SSLContext` instead.
`SMTPHandler` now creates a context from the `secure` tuple and passes
that to `starttls`.
Lib/logging/handlers.py
Misc/NEWS.d/next/Library/2024-12-07-20-33-43.gh-issue-127712.Uzsij4.rst [new file with mode: 0644]