diff options
| author | sommersoft <sommersoft@gmail.com> | 2019-10-02 00:02:49 -0500 |
|---|---|---|
| committer | sommersoft <sommersoft@gmail.com> | 2019-10-02 00:02:49 -0500 |
| commit | 01ec3b995e8613489791efb3fb8add9a6d662a51 (patch) | |
| tree | 4cdf8b98f24eead34700a7920e9be7d1f14c5110 /docs/shared_bindings_matrix.py | |
| parent | c53ad5fe8a870aa854f7233460f2760a6ce64c29 (diff) | |
use 'any()' vs 'len == 1 & == False'
Diffstat (limited to 'docs/shared_bindings_matrix.py')
| -rw-r--r-- | docs/shared_bindings_matrix.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/shared_bindings_matrix.py b/docs/shared_bindings_matrix.py index bfa107a47..ba0ec0e4f 100644 --- a/docs/shared_bindings_matrix.py +++ b/docs/shared_bindings_matrix.py @@ -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: |
