From 8e3dd499702ee985b85f393958b1aa0bfdeb4374 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Tue, 29 Aug 2023 10:19:52 +0200 Subject: [PATCH] fix linting --- ansibledoctor/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ansibledoctor/utils.py b/ansibledoctor/utils.py index e8266e0..8c67008 100644 --- a/ansibledoctor/utils.py +++ b/ansibledoctor/utils.py @@ -23,8 +23,7 @@ def to_bool(string): def flatten(items): for x in items: if isinstance(x, Iterable) and not isinstance(x, (str, bytes)): - for sub_x in flatten(x): - yield sub_x + yield from flatten(x) else: yield x