diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-04-27 20:00:18 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-04-27 20:00:18 +0600 |
commit | c86b61428b127ee29793f005c5e45e321696d7e9 (patch) | |
tree | b7ab5e701c70e3086a242ad618e4b0061460ce78 /youtube_dl/utils.py | |
parent | 40b96352c99953aec9272574729077c06c235747 (diff) |
[utils] Fix another old python 2.6 kwargs issue (Closes #5539)
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r-- | youtube_dl/utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 7d15eab64..f07679c76 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -37,6 +37,7 @@ from .compat import ( compat_chr, compat_html_entities, compat_http_client, + compat_kwargs, compat_parse_qs, compat_socket_create_connection, compat_str, @@ -114,7 +115,7 @@ def write_json_file(obj, fn): 'encoding': 'utf-8', }) - tf = tempfile.NamedTemporaryFile(**args) + tf = tempfile.NamedTemporaryFile(**compat_kwargs(args)) try: with tf: |