projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[options] Accept quoted string across multiple lines (#9940)
[youtube-dl]
/
youtube_dl
/
options.py
diff --git
a/youtube_dl/options.py
b/youtube_dl/options.py
index 99ce4131fdfaacbbbca07805fbc86c8563ea95fe..c9033e3cb230e4019b49c0fa6903ce1e8c65d556 100644
(file)
--- a/
youtube_dl/options.py
+++ b/
youtube_dl/options.py
@@
-26,9
+26,7
@@
def parseOpts(overrideArguments=None):
except IOError:
return default # silently skip if file is not present
try:
- res = []
- for l in optionf:
- res += compat_shlex_split(l, comments=True)
+ res = compat_shlex_split(optionf.read(), comments=True)
finally:
optionf.close()
return res