summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0db261b)
This code is only run for Python < 3.4, where context.load_default_certs doesn't exist
if opts_no_check_certificate
else ssl.CERT_REQUIRED)
context.set_default_verify_paths()
if opts_no_check_certificate
else ssl.CERT_REQUIRED)
context.set_default_verify_paths()
- try:
- context.load_default_certs()
- except AttributeError:
- pass # Python < 3.4
return compat_urllib_request.HTTPSHandler(context=context, **kwargs)
return compat_urllib_request.HTTPSHandler(context=context, **kwargs)