diff options
author | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-02-05 18:22:05 +0000 |
---|---|---|
committer | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-02-05 18:22:05 +0000 |
commit | 1982830ab55a6748ef2864818a3e07cc5ee536d9 (patch) | |
tree | 04d5ef11f3eefc49bcc5e2aa8d109cd80ffde0bd | |
parent | 34a34432631ad5d0748a6f4a33788f2321710275 (diff) | |
download | buildstream-1982830ab55a6748ef2864818a3e07cc5ee536d9.tar.gz |
fixup! Use sets
-rw-r--r-- | buildstream/_loader/loader.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/buildstream/_loader/loader.py b/buildstream/_loader/loader.py index 6fc12c7f2..e8cb94ba9 100644 --- a/buildstream/_loader/loader.py +++ b/buildstream/_loader/loader.py @@ -301,10 +301,10 @@ class Loader(): sequence = [] # Skip already validated branches - if validated.get(element) is not None: + if element in validated: return - if check_elements.get(element) is not None: + if element in check_elements: # Create `chain`, the loop of element dependencies from this # element back to itself, by trimming everything before this # element from the sequence under consideration. |