mirror of
https://github.com/sharkdp/bat.git
synced 2024-09-29 22:21:29 +02:00
Use list.extend(…)
This commit is contained in:
parent
bf87f37039
commit
33128d75f2
@ -30,9 +30,10 @@ def get_options(source):
|
|||||||
options_file = path.join(source_dirpath, "bat_options")
|
options_file = path.join(source_dirpath, "bat_options")
|
||||||
try:
|
try:
|
||||||
with open(options_file, "r") as f:
|
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:
|
except FileNotFoundError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
return options
|
return options
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user