summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-05-02 03:32:00 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-05-13 16:59:58 +0300
commit5eae9092937043c307acc5190543c7088d8196f1 (patch)
tree4b18eecfdf18005a62105d57f60a59f40fce057b
parentf8e981002099ad2cefe9aa1c3aa0d31cbd7a0350 (diff)
utils: raspberrypi: ctt: Fix pycodestyle E721
E721 do not compare types, use 'isinstance()' Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: David Plowman <david.plowman@raspberrypi.com>
-rw-r--r--utils/raspberrypi/ctt/ctt_tools.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/raspberrypi/ctt/ctt_tools.py b/utils/raspberrypi/ctt/ctt_tools.py
index f4b9baac..3a2fb4af 100644
--- a/utils/raspberrypi/ctt/ctt_tools.py
+++ b/utils/raspberrypi/ctt/ctt_tools.py
@@ -36,10 +36,10 @@ def get_config(dictt, key, default, ttype):
if 'float' not in str(type(val)):
raise ValueError
elif ttype == 'dict':
- if type(val) != type(dictt):
+ if not isinstance(val, dict):
raise ValueError
elif ttype == 'list':
- if type(val) != type([]):
+ if not isinstance(val, list):
raise ValueError
elif ttype == 'bool':
ttype = int(bool(ttype))