1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00

Use comprehension for clarity and best practice

Co-Authored-By: Ross McFarland <ross@github.com>
This commit is contained in:
Kaari
2020-01-08 19:52:13 +01:00
committed by GitHub
parent e22a7d2738
commit 4b625eba64

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)]