aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-06-17 23:48:58 +0700
committerSergey M․ <dstftw@gmail.com>2017-06-17 23:48:58 +0700
commitaefce8e6dca8a0ae784468a5e1a4ba01f1471380 (patch)
tree21d13167f80a605c6b542d58b071f5f813b53752
parent8b6ac49ecc873f787f647f1e623af989f85de644 (diff)
[utils] Use compat_shlex_quote in shell_quote
-rw-r--r--youtube_dl/utils.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index 1973bd483..39860e9d1 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -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)