projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
FFmpegPostProcessor: print the command line used if the --verbose option is given
[youtube-dl]
/
youtube_dl
/
utils.py
diff --git
a/youtube_dl/utils.py
b/youtube_dl/utils.py
index 82a1daeb9075a056aa908e0a91bbd83b8897673a..0457f3dedb06bce5fdce6cff1bf87b074b7206da 100644
(file)
--- a/
youtube_dl/utils.py
+++ b/
youtube_dl/utils.py
@@
-9,6
+9,7
@@
import io
import json
import locale
import os
+import pipes
import platform
import re
import socket
@@
-927,3
+928,7
@@
class locked_file(object):
def read(self, *args):
return self.f.read(*args)
+
+
+def shell_quote(args):
+ return ' '.join(map(pipes.quote, args))