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