summaryrefslogtreecommitdiff
path: root/buildstream
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-04-19 15:38:09 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-04-19 15:38:09 +0900
commitec2648cb2208574485978a492a9b79c2c417ee13 (patch)
treefe3505c56648137398f67391a8ab2452706c9579 /buildstream
parentdc30af8ab6ea51ed8b4defe12ddb1dce4c865578 (diff)
downloadbuildstream-ec2648cb2208574485978a492a9b79c2c417ee13.tar.gz
buildstream/_loader/loader.py: Fixing unused variables
Diffstat (limited to 'buildstream')
-rw-r--r--buildstream/_loader/loader.py3
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