mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-14 07:12:41 +00:00
[utils] Use compat_shlex_quote in shell_quote
This commit is contained in:
parent
8b6ac49ecc
commit
aefce8e6dc
1 changed files with 1 additions and 2 deletions
|
@ -22,7 +22,6 @@ import locale
|
||||||
import math
|
import math
|
||||||
import operator
|
import operator
|
||||||
import os
|
import os
|
||||||
import pipes
|
|
||||||
import platform
|
import platform
|
||||||
import random
|
import random
|
||||||
import re
|
import re
|
||||||
|
@ -1535,7 +1534,7 @@ def shell_quote(args):
|
||||||
if isinstance(a, bytes):
|
if isinstance(a, bytes):
|
||||||
# We may get a filename encoded with 'encodeFilename'
|
# We may get a filename encoded with 'encodeFilename'
|
||||||
a = a.decode(encoding)
|
a = a.decode(encoding)
|
||||||
quoted_args.append(pipes.quote(a))
|
quoted_args.append(compat_shlex_quote(a))
|
||||||
return ' '.join(quoted_args)
|
return ' '.join(quoted_args)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue