From 4d716e1b9c8fa4e3facccaefdb04a21ed39584bf Mon Sep 17 00:00:00 2001 From: Matthias Klumpp Date: Fri, 22 Dec 2023 04:19:56 +0100 Subject: [PATCH] trivial: resolve flake8 issue --- debspawn/utils/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debspawn/utils/misc.py b/debspawn/utils/misc.py index faa8714..45b4035 100644 --- a/debspawn/utils/misc.py +++ b/debspawn/utils/misc.py @@ -40,7 +40,7 @@ def listify(item: T.Any): ''' if not item: return [] - return item if type(item) == list else [item] + return item if isinstance(item, list) else [item] @contextmanager