aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/utils.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-11-25 03:30:37 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2013-11-25 03:30:37 +0100
commit79d09f47c2abafe94c36d5c6718038c854748360 (patch)
treeabe26f1cd8c2eb60e03e260433bf670e8d12323a /youtube_dl/utils.py
parentc059bdd432911cff8c7426380a876c9679855ab5 (diff)
parente03db0a0773e078d9b677d396ad78362654956af (diff)
Merge branch 'opener-to-ydl'
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r--youtube_dl/utils.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index ad0a06287..caec00e37 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -538,8 +538,7 @@ def formatSeconds(secs):
else:
return '%d' % secs
-
-def make_HTTPS_handler(opts):
+def make_HTTPS_handler(opts_no_check_certificate):
if sys.version_info < (3, 2):
import httplib
@@ -566,7 +565,7 @@ def make_HTTPS_handler(opts):
context.set_default_verify_paths()
context.verify_mode = (ssl.CERT_NONE
- if opts.no_check_certificate
+ if opts_no_check_certificate
else ssl.CERT_REQUIRED)
return compat_urllib_request.HTTPSHandler(context=context)