Skip to content

Commit f3c0ea3

Browse files
committed
[tools] Fixed precedence issue in cumulative attribute set-arithmetic
Basically this: a | b - c != (a | b) - c
1 parent b171a9c commit f3c0ea3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ def strict_cumulative_overrides(self, overrides):
169169

170170
def update_target(self, target):
171171
setattr(target, self.name, list(
172-
set(getattr(target, self.name, [])) | self.additions - self.removals))
172+
(set(getattr(target, self.name, [])) | self.additions) - self.removals))
173+
173174

174175

175176
# 'Config' implements the mbed configuration mechanism

0 commit comments

Comments
 (0)