sourceset module: fix minor regression in making sourcesets immutable

In commit c0be7e05b0 the setting of merged
sourcesets as immutable in a loop accidentally got dedented, and only
applied to the last loop iteration.
This commit is contained in:
Eli Schwartz 2022-02-27 14:45:09 -05:00
parent 008b1cef50
commit 880d5000b2
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ class SourceSetImpl(SourceSet, MutableModuleObject):
for s in if_true:
if not isinstance(s, SourceSetImpl):
raise InvalidCode('Arguments to \'add_all\' after the first must be source sets')
s.frozen = True
s.frozen = True
self.rules.append(SourceSetRule(keys, [], [], if_true, dependencies))
def collect(self, enabled_fn: T.Callable[[str], bool],