use 'any()' vs 'len == 1 & == False'

This commit is contained in:
sommersoft 2019-10-02 00:02:49 -05:00
parent c53ad5fe8a
commit 01ec3b995e
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ def get_excluded_boards(base):
# only exclude the module if there were zero parents enabled
# 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"]:
base[module]["excluded"][board_chip].append(entry.name)
else: