[issue18543] urllib.parse.urlopen shouldn't ignore installed opener when called with any ca* argument

David Ford (FirefighterBlu3) report at bugs.python.org
Thu Jul 2 22:30:00 CEST 2015


David Ford (FirefighterBlu3) added the comment:

the attached diff (for py3) fixes the (badly) broken urlopen :}

previously, if SSL args were detected, all installed handlers via _opener got wiped out. now, we check if _opener already exists and if so we just make sure the HTTPSHandler is added thus preserving installed handlers.

----------
keywords: +patch
nosy: +David Ford (FirefighterBlu3)
Added file: http://bugs.python.org/file39846/urllib.request.py-do-not-overwrite-existing-opener.diff

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


More information about the Python-bugs-list mailing list