[New-bugs-announce] [issue23542] Update PEP 476 for using urllib2.build_opener()

Shakeel Mohamed report at bugs.python.org
Fri Feb 27 21:43:48 CET 2015


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 at python
components: Documentation
messages: 236835
nosy: Shakeel Mohamed, docs at python
priority: normal
severity: normal
status: open
title: Update PEP 476 for using urllib2.build_opener()
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23542>
_______________________________________


More information about the New-bugs-announce mailing list