[Python-checkins] peps: PEP476: Updated based on proposed API from Nick. Also note that #22366 has been

alex.gaynor python-checkins at python.org
Fri Sep 19 18:51:25 CEST 2014


http://hg.python.org/peps/rev/9c3249b358d0
changeset:   5554:9c3249b358d0
user:        Alex Gaynor <alex.gaynor at gmail.com>
date:        Fri Sep 19 09:51:17 2014 -0700
summary:
  PEP476: Updated based on proposed API from Nick. Also note that #22366 has been landed.

files:
  pep-0476.txt |  15 ++++++++++-----
  1 files changed, 10 insertions(+), 5 deletions(-)


diff --git a/pep-0476.txt b/pep-0476.txt
--- a/pep-0476.txt
+++ b/pep-0476.txt
@@ -68,9 +68,14 @@
 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 @@
 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.
 

-- 
Repository URL: http://hg.python.org/peps


More information about the Python-checkins mailing list