]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-94172: Remove keyfile, certfile and check_hostname parameters (#94173)
authorVictor Stinner <vstinner@python.org>
Thu, 3 Nov 2022 17:32:25 +0000 (18:32 +0100)
committerGitHub <noreply@github.com>
Thu, 3 Nov 2022 17:32:25 +0000 (18:32 +0100)
commitef0e72b31d22f780d3a165d7d0471806061fe380
treeb6c37400400dbca49c00466290a60122b6137ae9
parent9c4ae037b9c39312b792964497c090ce01570208
gh-94172: Remove keyfile, certfile and check_hostname parameters (#94173)

Remove the keyfile, certfile and check_hostname parameters,
deprecated since Python 3.6, in modules: ftplib, http.client,
imaplib, poplib and smtplib. Use the context parameter (ssl_context
in imaplib) instead.

Parameters following the removed parameters become keyword-only
parameters.

ftplib: Remove the FTP_TLS.ssl_version class attribute: use the
context parameter instead.
12 files changed:
Doc/whatsnew/3.12.rst
Lib/ftplib.py
Lib/http/client.py
Lib/imaplib.py
Lib/poplib.py
Lib/smtplib.py
Lib/test/test_ftplib.py
Lib/test/test_httplib.py
Lib/test/test_imaplib.py
Lib/test/test_poplib.py
Misc/NEWS.d/next/Library/2022-06-23-15-31-49.gh-issue-94172.AXE2IZ.rst [new file with mode: 0644]
Misc/NEWS.d/next/Library/2022-06-23-15-36-49.gh-issue-94172.DzQk0s.rst [new file with mode: 0644]