From dcaa78ee96b108d08a5f4a5dd5dc6778854d2954 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sun, 31 Aug 2014 16:57:21 -0700 Subject: [PATCH] PEP 476: Better document the warning mechanism discussed on python-dev --- pep-0476.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pep-0476.txt b/pep-0476.txt index c936b07e2..074ac446d 100644 --- a/pep-0476.txt +++ b/pep-0476.txt @@ -115,6 +115,15 @@ In order to make this transition as smooth as possible, the next 3.4.x release following this PEP will be modified to emit a warning in cases that would raise an Exception in Python 3.5. +Warnings +-------- + +To support this warning, in 3.4.next a new ``verify_mode`` is introduced +``CERT_WARN``, which is equivilant to ``CERT_NONE``, except in cases that would +fail as ``CERT_REQUIRED`` or fail the hostname check emits a warning. In +3.4.next the ``httplib`` module will set this as the ``verify_mode`` if the +default context is used. + Other protocols ===============