aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--youtube_dl/options.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/youtube_dl/options.py b/youtube_dl/options.py
index 99ce4131f..c9033e3cb 100644
--- 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