diff options
| author | Sergey M․ <dstftw@gmail.com> | 2015-09-05 21:42:41 +0600 | 
|---|---|---|
| committer | Sergey M․ <dstftw@gmail.com> | 2015-09-05 21:42:41 +0600 | 
| commit | cab792abe521d36e1cf296fa8578a37a499a78fe (patch) | |
| tree | 9f12edcebaebdb6af35a039f84901b0513b370b1 | |
| parent | 8870358b1b1a13c936277081b668f94c5abf95e3 (diff) | |
[options] Use compat_shlex_split
| -rw-r--r-- | youtube_dl/options.py | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/options.py b/youtube_dl/options.py index 8c4ff12bd..5eccc0a70 100644 --- 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  | 
