[Notes] [Git][BuildStream/buildstream][jonathan/pickle-yaml] _yaml: Mix spurious check of project



Title: GitLab

Jonathan Maw pushed to branch jonathan/pickle-yaml at BuildStream / buildstream

Commits:

1 changed file:

Changes:

  • buildstream/_yaml.py
    ... ... @@ -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
    



  • [Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]