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 <rep...@bugs.python.org>
<http://bugs.python.org/issue23542>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to