mirror of
https://github.com/thegeeklab/ansible-doctor.git
synced 2024-11-24 05:40:40 +00:00
fix linting
This commit is contained in:
parent
33caaf78c9
commit
8e3dd49970
@ -23,8 +23,7 @@ def to_bool(string):
|
|||||||
def flatten(items):
|
def flatten(items):
|
||||||
for x in items:
|
for x in items:
|
||||||
if isinstance(x, Iterable) and not isinstance(x, (str, bytes)):
|
if isinstance(x, Iterable) and not isinstance(x, (str, bytes)):
|
||||||
for sub_x in flatten(x):
|
yield from flatten(x)
|
||||||
yield sub_x
|
|
||||||
else:
|
else:
|
||||||
yield x
|
yield x
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user