projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8870358
)
[options] Use compat_shlex_split
author
Sergey M․
<dstftw@gmail.com>
Sat, 5 Sep 2015 15:42:41 +0000
(21:42 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 5 Sep 2015 15:42:41 +0000
(21:42 +0600)
youtube_dl/options.py
patch
|
blob
|
history
diff --git
a/youtube_dl/options.py
b/youtube_dl/options.py
index 8c4ff12bdd1763c12908ef8dc875f0916794237b..5eccc0a705a6e7acda232541189b713712db97a8 100644
(file)
--- a/
youtube_dl/options.py
+++ b/
youtube_dl/options.py
@@
-2,7
+2,6
@@
from __future__ import unicode_literals
import os.path
import optparse
-import shlex
import sys
from .downloader.external import list_external_downloaders
@@
-11,6
+10,7
@@
from .compat import (
compat_get_terminal_size,
compat_getenv,
compat_kwargs,
+ compat_shlex_split,
)
from .utils import (
preferredencoding,
@@
-28,7
+28,7
@@
def parseOpts(overrideArguments=None):
try:
res = []
for l in optionf:
- res +=
shlex.
split(l, comments=True)
+ res +=
compat_shlex_
split(l, comments=True)
finally:
optionf.close()
return res