From 474371ce0f25bf0b46fd88c4c90ae5dea3c07d70 Mon Sep 17 00:00:00 2001 From: aaronkaplan Date: Wed, 22 Nov 2023 23:05:26 +0100 Subject: [PATCH] fix pycodestyle error --- parsers/sysdiagnose-networkextension.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parsers/sysdiagnose-networkextension.py b/parsers/sysdiagnose-networkextension.py index b22ee38..c437a3b 100644 --- a/parsers/sysdiagnose-networkextension.py +++ b/parsers/sysdiagnose-networkextension.py @@ -45,7 +45,7 @@ def parseplist(file): output = {'objects': []} for object in objects: - if type(object) == str: + if isinstance(object,str): output['objects'].append(object) return output