aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-09-20 21:08:29 +0600
committerSergey M․ <dstftw@gmail.com>2015-09-20 21:08:29 +0600
commit5a1a2e94548f25b5fd540090af3f32a1d875f6b4 (patch)
treef6bffaa203528bf0588ccb7ae7bf3bf5735302dd
parentf005f96ea594a82969885ecd124b094c7e09949a (diff)
[utils] Fix kwargs on old python 2 (Closes #6905)
-rw-r--r--youtube_dl/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index 206dd56bc..1dc3153fd 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -619,7 +619,7 @@ def _create_http_connection(ydl_handler, http_class, is_https, *args, **kwargs):
# expected HTTP responses to meet HTTP/1.0 or later (see also
# https://github.com/rg3/youtube-dl/issues/6727)
if sys.version_info < (3, 0):
- kwargs['strict'] = True
+ kwargs[b'strict'] = True
hc = http_class(*args, **kwargs)
source_address = ydl_handler._params.get('source_address')
if source_address is not None: