From 01ec3b995e8613489791efb3fb8add9a6d662a51 Mon Sep 17 00:00:00 2001 From: sommersoft Date: Wed, 2 Oct 2019 00:02:49 -0500 Subject: use 'any()' vs 'len == 1 & == False' --- docs/shared_bindings_matrix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') 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: -- cgit v1.2.3