SIGN IN SIGN UP

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`.
S
s-hamann committed
d7672e5d5a7b9580a72dbe75d3a9e8840bcc604c
Parent: 94cd2e0
Committed by GitHub <noreply@github.com> on 2/10/2025, 12:34:27 PM