replace with list comp
This commit is contained in:
parent
885c7ce281
commit
107b04d462
|
@ -376,7 +376,7 @@ class Config(object):
|
||||||
elif type == "args":
|
elif type == "args":
|
||||||
return py.std.shlex.split(value)
|
return py.std.shlex.split(value)
|
||||||
elif type == "linelist":
|
elif type == "linelist":
|
||||||
return filter(None, map(lambda x: x.strip(), value.split("\n")))
|
return [t for t in map(lambda x: x.strip(), value.split("\n")) if t]
|
||||||
else:
|
else:
|
||||||
assert type is None
|
assert type is None
|
||||||
return value
|
return value
|
||||||
|
|
Loading…
Reference in New Issue