projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f005f96
)
[utils] Fix kwargs on old python 2 (Closes #6905)
author
Sergey M․
<dstftw@gmail.com>
Sun, 20 Sep 2015 15:08:29 +0000
(21:08 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 20 Sep 2015 15:08:29 +0000
(21:08 +0600)
youtube_dl/utils.py
patch
|
blob
|
history
diff --git
a/youtube_dl/utils.py
b/youtube_dl/utils.py
index 206dd56bcc6da0278543c54f0066df25f50842de..1dc3153fd901e8fef6241e747f863a52a221e12d 100644
(file)
--- 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: