PEP476: Updated based on proposed API from Nick. Also note that #22366 has been landed.
This commit is contained in:
parent
7ba13f8563
commit
53dc5c2c30
15
pep-0476.txt
15
pep-0476.txt
|
@ -68,9 +68,14 @@ Python would use the system provided certificate database on all platforms.
|
|||
Failure to locate such a database would be an error, and users would need to
|
||||
explicitly specify a location to fix it.
|
||||
|
||||
This can be achieved by simply replacing the use of
|
||||
``ssl._create_stdlib_context`` with ``ssl.create_default_context`` in
|
||||
``http.client``.
|
||||
This will be acheived by adding a new ``ssl._create_default_https_context``
|
||||
function, which is the same as ``ssl.create_default``. ``http.client`` can then
|
||||
replace it's usage of ``ssl._create_stdlib_context`` with the new
|
||||
``ssl._create_default_https_context``.
|
||||
|
||||
Additionally ``ssl._create_stdlib_context`` is renamed
|
||||
``ssl._create_unverified_context`` (an alias is kept around for backwards
|
||||
compatibility reasons).
|
||||
|
||||
Trust database
|
||||
--------------
|
||||
|
@ -138,8 +143,8 @@ backported in
|
|||
Implementation
|
||||
==============
|
||||
|
||||
* `Issue 22366 <http://bugs.python.org/issue22366>`_ adds the ``context``
|
||||
argument to ``urlib.request.urlopen``.
|
||||
* **LANDED**: `Issue 22366 <http://bugs.python.org/issue22366>`_ adds the
|
||||
``context`` argument to ``urlib.request.urlopen``.
|
||||
* `Issue 22417 <http://bugs.python.org/issue22417>`_ implements the substance
|
||||
of this PEP.
|
||||
|
||||
|
|
Loading…
Reference in New Issue