mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +00:00
Issue #28022: Deprecate ssl-related arguments in favor of SSLContext.
The deprecation include manual creation of SSLSocket and certfile/keyfile (or similar) in ftplib, httplib, imaplib, smtplib, poplib and urllib. ssl.wrap_socket() is not marked as deprecated yet.
This commit is contained in:
parent
130bbe5fd3
commit
d04863771b
23 changed files with 189 additions and 85 deletions
|
|
@ -111,6 +111,12 @@ The :mod:`urllib.request` module defines the following functions:
|
|||
.. versionchanged:: 3.4.3
|
||||
*context* was added.
|
||||
|
||||
.. deprecated:: 3.6
|
||||
|
||||
*cafile*, *capath* and *cadefault* are deprecated in favor of *context*.
|
||||
Please use :meth:`ssl.SSLContext.load_cert_chain` instead, or let
|
||||
:func:`ssl.create_default_context` select the system's trusted CA
|
||||
certificates for you.
|
||||
|
||||
.. function:: install_opener(opener)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue