mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-07 20:30:41 -05:00
[configuration] Undo code breakage
This commit is contained in:
parent
fb27c2295e
commit
a0eaa341e1
1 changed files with 3 additions and 1 deletions
|
@ -87,7 +87,9 @@ def _readOptions(filename_bytes, default=[]):
|
||||||
except IOError:
|
except IOError:
|
||||||
return default # silently skip if file is not present
|
return default # silently skip if file is not present
|
||||||
try:
|
try:
|
||||||
res = [shlex.split(l, comments=True) for l in optionf]
|
res = []
|
||||||
|
for l in optionf:
|
||||||
|
res += shlex.split(l, comments=True)
|
||||||
finally:
|
finally:
|
||||||
optionf.close()
|
optionf.close()
|
||||||
return res
|
return res
|
||||||
|
|
Loading…
Reference in a new issue