diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-05-02 03:32:00 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-05-13 16:59:58 +0300 |
commit | 5eae9092937043c307acc5190543c7088d8196f1 (patch) | |
tree | 4b18eecfdf18005a62105d57f60a59f40fce057b /utils/raspberrypi/ctt | |
parent | f8e981002099ad2cefe9aa1c3aa0d31cbd7a0350 (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>
Diffstat (limited to 'utils/raspberrypi/ctt')
-rw-r--r-- | utils/raspberrypi/ctt/ctt_tools.py | 4 |
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)) |