This website works better with JavaScript.
Home
Help
Sign In
zolfa
/
youtube-dl
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
1.1k
Wiki
Activity
Browse Source
[utils] make_HTTPS_handler: Remove try/except block that would always raise an exception
This code is only run for Python < 3.4, where context.load_default_certs doesn't exist
totalwebcasting
Jaime Marquínez Ferrándiz
10 years ago
parent
0db261ba56
commit
293f0f39ce
1 changed files
with
0 additions
and
4 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-4
youtube_dl/utils.py
+ 0
- 4
youtube_dl/utils.py
View File
@ -421,10 +421,6 @@ def make_HTTPS_handler(opts_no_check_certificate, **kwargs):
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
)
Write
Preview
Loading…
Cancel
Save