1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[utils] Use compat_shlex_quote in shell_quote

This commit is contained in:
Sergey M․ 2017-06-17 23:48:58 +07:00
parent 8b6ac49ecc
commit aefce8e6dc
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -22,7 +22,6 @@ import locale
import math
import operator
import os
import pipes
import platform
import random
import re
@ -1535,7 +1534,7 @@ def shell_quote(args):
if isinstance(a, bytes):
# We may get a filename encoded with 'encodeFilename'
a = a.decode(encoding)
quoted_args.append(pipes.quote(a))
quoted_args.append(compat_shlex_quote(a))
return ' '.join(quoted_args)