use 'any()' vs 'len == 1 & == False'
This commit is contained in:
parent
c53ad5fe8a
commit
01ec3b995e
@ -230,7 +230,7 @@ def get_excluded_boards(base):
|
|||||||
|
|
||||||
# only exclude the module if there were zero parents enabled
|
# only exclude the module if there were zero parents enabled
|
||||||
# as determined by the 'depend_results' set.
|
# as determined by the 'depend_results' set.
|
||||||
if (len(depend_results) == 1 and False in depend_results):
|
if not any(depend_results):
|
||||||
if board_chip in base[module]["excluded"]:
|
if board_chip in base[module]["excluded"]:
|
||||||
base[module]["excluded"][board_chip].append(entry.name)
|
base[module]["excluded"][board_chip].append(entry.name)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user