Jonathan Maw pushed to branch jonathan/pickle-yaml at BuildStream / buildstream
Commits:
- 
bf82e2ac
by Jonathan Maw at 2018-09-28T10:30:46Z
1 changed file:
Changes:
| ... | ... | @@ -200,7 +200,6 @@ def load(filename, shortname=None, copy_tree=False, *, project=None, yaml_cache= | 
| 200 | 200 |          with open(filename) as f:
 | 
| 201 | 201 |              contents = f.read()
 | 
| 202 | 202 |          if yaml_cache:
 | 
| 203 | -            assert project
 | |
| 204 | 203 |              key = yaml_cache.calculate_key(contents, copy_tree)
 | 
| 205 | 204 |              data = yaml_cache.get(project, filename, key)
 | 
| 206 | 205 |  | 
| ... | ... | @@ -208,7 +207,6 @@ def load(filename, shortname=None, copy_tree=False, *, project=None, yaml_cache= | 
| 208 | 207 |              data = load_data(contents, file, copy_tree=copy_tree)
 | 
| 209 | 208 |  | 
| 210 | 209 |          if yaml_cache:
 | 
| 211 | -            assert project
 | |
| 212 | 210 |              yaml_cache.put(project, filename, key, data)
 | 
| 213 | 211 |  | 
| 214 | 212 |          return data
 | 
