summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Maw <jonathan.maw@codethink.co.uk>2018-09-28 11:30:46 +0100
committerJonathan Maw <jonathan.maw@codethink.co.uk>2018-09-28 11:30:46 +0100
commitbf82e2ac7bf7eaf5657be990fac6ee34df76178b (patch)
treea3886c2869d05c65d682fa23685d99eaa5cf9f80
parentc8d4eda036cb57fec96bf11ac7baa295dfaf7190 (diff)
downloadbuildstream-jonathan/pickle-yaml.tar.gz
_yaml: Mix spurious check of projectjonathan/pickle-yaml
-rw-r--r--buildstream/_yaml.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/buildstream/_yaml.py b/buildstream/_yaml.py
index 4461b4c9d..de2ef0dd2 100644
--- a/buildstream/_yaml.py
+++ b/buildstream/_yaml.py
@@ -200,7 +200,6 @@ def load(filename, shortname=None, copy_tree=False, *, project=None, yaml_cache=
with open(filename) as f:
contents = f.read()
if yaml_cache:
- assert project
key = yaml_cache.calculate_key(contents, copy_tree)
data = yaml_cache.get(project, filename, key)
@@ -208,7 +207,6 @@ def load(filename, shortname=None, copy_tree=False, *, project=None, yaml_cache=
data = load_data(contents, file, copy_tree=copy_tree)
if yaml_cache:
- assert project
yaml_cache.put(project, filename, key, data)
return data