Use list.extend(…)

pull/1312/head
sharkdp 4 years ago
parent bf87f37039
commit 33128d75f2

@ -30,9 +30,10 @@ def get_options(source):
options_file = path.join(source_dirpath, "bat_options")
try:
with open(options_file, "r") as f:
options += list(map(lambda x: x.rstrip(), f.readlines()))
options.extend(map(lambda x: x.rstrip(), f.readlines()))
except FileNotFoundError:
pass
return options

Loading…
Cancel
Save