summaryrefslogtreecommitdiff
path: root/buildstream
diff options
context:
space:
mode:
authorJames Ennis <james.ennis@codethink.com>2018-02-14 15:03:28 +0000
committerJames Ennis <james.ennis@codethink.com>2018-03-14 14:10:26 +0000
commita4a302bbf08415af34c804546f4e491e41dcee29 (patch)
treef6c093755a185cc9ecea8bf302e748638d03ca5c /buildstream
parentcdd17bf32dc579cf64161c301c6017f6d82e62d8 (diff)
downloadbuildstream-a4a302bbf08415af34c804546f4e491e41dcee29.tar.gz
pylint - dealt with consider-merging-isinstance warnings
Diffstat (limited to 'buildstream')
-rw-r--r--buildstream/_yaml.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/buildstream/_yaml.py b/buildstream/_yaml.py
index c771e1b82..2e29f5e18 100644
--- a/buildstream/_yaml.py
+++ b/buildstream/_yaml.py
@@ -355,8 +355,7 @@ def node_get(node, expected_type, key, indices=[], default_value=None):
raise ValueError()
elif not (expected_type == list or
expected_type == dict or
- isinstance(value, list) or
- isinstance(value, dict)):
+ isinstance(value, (list, dict))):
value = expected_type(value)
else:
raise ValueError()