summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Schubert <contact@benschubert.me>2019-06-05 21:06:31 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-06-06 15:53:43 +0000
commit6a42630a4057e704ed00fe8d478c86f774c6fd3c (patch)
treeca012f9f0b62f8befb43232f2ef75cb1e63372d0
parent1e3ef2d7a9885a5514cf66d12df5890a3c6e04b0 (diff)
downloadbuildstream-6a42630a4057e704ed00fe8d478c86f774c6fd3c.tar.gz
_loader/types: use type(x) is str instead of isintance
We don't expected anything else than `str` or `Node`, so type() should be enough
-rw-r--r--src/buildstream/_loader/types.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/_loader/types.py b/src/buildstream/_loader/types.py
index f9dd38ca0..a9aa3ab32 100644
--- a/src/buildstream/_loader/types.py
+++ b/src/buildstream/_loader/types.py
@@ -62,7 +62,7 @@ class Dependency():
def __init__(self, dep, provenance, default_dep_type=None):
self.provenance = provenance
- if isinstance(dep, str):
+ if type(dep) is str:
self.name = dep
self.dep_type = default_dep_type
self.junction = None