This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Update PEP 476 for using urllib2.build_opener()
Type: Stage: resolved
Components: Documentation Versions: Python 2.7
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: docs@python Nosy List: Shakeel Mohamed, alex, berker.peksag, christian.heimes, docs@python, dstufft, giampaolo.rodola, janssen, pitrou
Priority: normal Keywords:

Created on 2015-02-27 20:43 by Shakeel Mohamed, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (3)
msg236835 - (view) Author: Shakeel Mohamed (Shakeel Mohamed) Date: 2015-02-27 20:43
In the "Opting Out" section of PEP 476, there's a workaround for disabling SSL cert verification.

I think it would be worth updating the section to include the following workaround when using urllib2.build_opener(), like so:

unverified_ssl_handler = urllib2.HTTPSHandler(context=ssl._create_unverified_context())
opener = urllib2.build_opener(unverified_ssl_handler)
msg238249 - (view) Author: Shakeel Mohamed (Shakeel Mohamed) Date: 2015-03-16 22:48
Hi, any plans to do this? If not, we can close it.
msg272089 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) Date: 2016-08-06 11:03
Thanks for the patch, but I prefer keeping the section shorter. Also, note that disabling verification globally is discouraged in the PEP.
History
Date User Action Args
2022-04-11 14:58:13adminsetgithub: 67730
2016-08-06 11:03:10berker.peksagsetstatus: open -> closed

nosy: + berker.peksag
messages: + msg272089

resolution: rejected
stage: resolved
2015-03-16 22:48:25Shakeel Mohamedsetmessages: + msg238249
2015-02-28 17:31:17berker.peksagsetnosy: + janssen, pitrou, giampaolo.rodola, christian.heimes, alex, dstufft
2015-02-27 20:43:47Shakeel Mohamedcreate