Message121976
Here is a patch that changes SSLContext into a context manager, allowing to write code like
with ssl.SSLContext(ssl.PROTOCOL_SSLv23):
ssl.SSLContext.current().set_default_verify_path()
res = urllib.request.urlopen("https://www.microsoft.com")
If people like this approach, feel free to adjust it; I likely won't have much time to work on it further. |
|
Date |
User |
Action |
Args |
2010-11-21 20:19:30 | loewis | set | recipients:
+ loewis, pitrou, eric.araujo |
2010-11-21 20:19:29 | loewis | set | messageid: <1290370769.94.0.0170577513111.issue10441@psf.upfronthosting.co.za> |
2010-11-21 20:19:26 | loewis | link | issue10441 messages |
2010-11-21 20:19:26 | loewis | create | |
|