mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-23 08:17:00 +00:00
[utils] Fix another old python 2.6 kwargs issue (Closes #5539)
This commit is contained in:
parent
40b96352c9
commit
c86b61428b
1 changed files with 2 additions and 1 deletions
|
@ -37,6 +37,7 @@ from .compat import (
|
||||||
compat_chr,
|
compat_chr,
|
||||||
compat_html_entities,
|
compat_html_entities,
|
||||||
compat_http_client,
|
compat_http_client,
|
||||||
|
compat_kwargs,
|
||||||
compat_parse_qs,
|
compat_parse_qs,
|
||||||
compat_socket_create_connection,
|
compat_socket_create_connection,
|
||||||
compat_str,
|
compat_str,
|
||||||
|
@ -114,7 +115,7 @@ def write_json_file(obj, fn):
|
||||||
'encoding': 'utf-8',
|
'encoding': 'utf-8',
|
||||||
})
|
})
|
||||||
|
|
||||||
tf = tempfile.NamedTemporaryFile(**args)
|
tf = tempfile.NamedTemporaryFile(**compat_kwargs(args))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with tf:
|
with tf:
|
||||||
|
|
Loading…
Reference in a new issue