projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b6ac49
)
[utils] Use compat_shlex_quote in shell_quote
author
Sergey M․
<dstftw@gmail.com>
Sat, 17 Jun 2017 16:48:58 +0000
(23:48 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 17 Jun 2017 16:48:58 +0000
(23:48 +0700)
youtube_dl/utils.py
patch
|
blob
|
history
diff --git
a/youtube_dl/utils.py
b/youtube_dl/utils.py
index 1973bd4836a407d3e66fcc4c3a54d052e958ae19..39860e9d156baf2ceb205460c5f78fa2e9026f52 100644
(file)
--- 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)