From bae9b11da9ed7dd0b16fe5adeaf4774b7cc628cf Mon Sep 17 00:00:00 2001 From: James Falcon Date: Wed, 15 Dec 2021 20:16:38 -0600 Subject: Adopt Black and isort (SC-700) (#1157) Applied Black and isort, fixed any linting issues, updated tox.ini and CI. --- cloudinit/type_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cloudinit/type_utils.py') diff --git a/cloudinit/type_utils.py b/cloudinit/type_utils.py index 2c1ae368..d971b278 100644 --- a/cloudinit/type_utils.py +++ b/cloudinit/type_utils.py @@ -10,7 +10,6 @@ import types - _NAME_TYPES = ( types.ModuleType, types.FunctionType, @@ -23,9 +22,10 @@ def obj_name(obj): if isinstance(obj, _NAME_TYPES): return str(obj.__name__) else: - if not hasattr(obj, '__class__'): + if not hasattr(obj, "__class__"): return repr(obj) else: return obj_name(obj.__class__) + # vi: ts=4 expandtab -- cgit v1.2.3