浏览代码

[configuration] Undo code breakage

Philipp Hagemeister 11 年之前
父节点
当前提交
a0eaa341e1
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      youtube_dl/__init__.py

+ 3 - 1
youtube_dl/__init__.py

@@ -87,7 +87,9 @@ def parseOpts(overrideArguments=None):
         except IOError:
             return default  # silently skip if file is not present
         try:
-            res = [shlex.split(l, comments=True) for l in optionf]
+            res = []
+            for l in optionf:
+                res += shlex.split(l, comments=True)
         finally:
             optionf.close()
         return res