From 984808b3af69753df4f38844da69abe5f6a1a698 Mon Sep 17 00:00:00 2001 From: Felipe Reyes Date: Wed, 9 Aug 2023 10:42:21 -0400 Subject: [PATCH] pep8: use isinstance() --- charmhelpers/fetch/snap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charmhelpers/fetch/snap.py b/charmhelpers/fetch/snap.py index 36d6bce9a..7ab7ce3e2 100644 --- a/charmhelpers/fetch/snap.py +++ b/charmhelpers/fetch/snap.py @@ -52,7 +52,7 @@ def _snap_exec(commands): :param commands: List commands :return: Integer exit code """ - assert type(commands) == list + assert isinstance(commands, list) retry_count = 0 return_code = None