diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-04-19 15:38:09 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-04-19 15:38:09 +0900 |
commit | ec2648cb2208574485978a492a9b79c2c417ee13 (patch) | |
tree | fe3505c56648137398f67391a8ab2452706c9579 /buildstream | |
parent | dc30af8ab6ea51ed8b4defe12ddb1dce4c865578 (diff) | |
download | buildstream-ec2648cb2208574485978a492a9b79c2c417ee13.tar.gz |
buildstream/_loader/loader.py: Fixing unused variables
Diffstat (limited to 'buildstream')
-rw-r--r-- | buildstream/_loader/loader.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/buildstream/_loader/loader.py b/buildstream/_loader/loader.py index d8cac5ab4..a79e80bb3 100644 --- a/buildstream/_loader/loader.py +++ b/buildstream/_loader/loader.py @@ -377,7 +377,6 @@ class Loader(): # we have good error reporting for i in range(len(sources)): source = _yaml.node_get(node, Mapping, Symbol.SOURCES, indices=[i]) - provenance = _yaml.node_get_provenance(source) kind = _yaml.node_get(source, str, Symbol.KIND) del source[Symbol.KIND] @@ -451,7 +450,7 @@ class Loader(): return loader try: - load_element = self._load_file(filename, rewritable, ticker) + self._load_file(filename, rewritable, ticker) except LoadError as e: if e.reason != LoadErrorReason.MISSING_FILE: # other load error |