Skip to content

Commit

Permalink
Fix pep8 error in assert type comparison
Browse files Browse the repository at this point in the history
charmhelpers/fetch/snap.py:55:12: E721 do not compare types,
for exact checks use `is` / `is not`,
for instance checks use `isinstance()`
  • Loading branch information
rodrigogansobarbieri committed Sep 1, 2023
1 parent e2bd71b commit 5b0a3e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charmhelpers/fetch/snap.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def _snap_exec(commands):
:param commands: List commands
:return: Integer exit code
"""
assert type(commands) == list
assert type(commands) is list

retry_count = 0
return_code = None
Expand Down

0 comments on commit 5b0a3e6

Please sign in to comment.