A feature-rich command-line audio/video downloader
[utils] Use compat_shlex_quote in shell_quote
Sergey M․aefce8e6dca8
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.pyindex 1973bd4836..39860e9d15 100644--- a/youtube_dl/utils.py+++ b/youtube_dl/utils.py@@ -22,7 +22,6 @@ import localeimport mathimport operatorimport os-import pipesimport platformimport randomimport 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)