[issue23542] Update PEP 476 for using urllib2.build_opener()
New submission from Shakeel Mohamed: 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) ---------- assignee: docs@python components: Documentation messages: 236835 nosy: Shakeel Mohamed, docs@python priority: normal severity: normal status: open title: Update PEP 476 for using urllib2.build_opener() versions: Python 2.7 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue23542> _______________________________________
Changes by Berker Peksag <berker.peksag@gmail.com>: ---------- nosy: +alex, christian.heimes, dstufft, giampaolo.rodola, janssen, pitrou _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue23542> _______________________________________
Shakeel Mohamed added the comment: Hi, any plans to do this? If not, we can close it. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue23542> _______________________________________
Berker Peksag added the comment: Thanks for the patch, but I prefer keeping the section shorter. Also, note that disabling verification globally is discouraged in the PEP. ---------- nosy: +berker.peksag resolution: -> rejected stage: -> resolved status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue23542> _______________________________________
participants (2)
-
Berker Peksag
-
Shakeel Mohamed