Use comprehension for clarity and best practice

Co-Authored-By: Ross McFarland <[email protected]>
This commit is contained in:
Kaari
2020-01-08 19:52:13 +01:00
committed by GitHub
co-authored by Ross McFarland
parent e22a7d2738
commit 4b625eba64
+1 -1
View File
@@ -323,7 +323,7 @@ class OvhProvider(BaseProvider):
'n': lambda _: True,
'g': lambda _: True}
splitted = list(filter(None, value.split('\\;')))
splitted = [v for v in value.split('\\;') if v]
found_key = False
for splitted_value in splitted:
sub_split = [x.strip() for x in splitted_value.split("=", 1)]