diff options
| author | Dan Halbert <halbert@halwitz.org> | 2020-02-20 22:27:16 -0500 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2020-02-20 22:27:16 -0500 |
| commit | 23d6a3dc1fe2ece41642f602343650fce5be83c7 (patch) | |
| tree | 801979949b826c0a2c439563f0efe692831a25d1 /docs/shared_bindings_matrix.py | |
| parent | 1caf6bd8d3924b2f7861cd8b0af0d16a608bb736 (diff) | |
| parent | 675930083de102ab73af6f6a586614793e467f5f (diff) | |
merge from upstream
Diffstat (limited to 'docs/shared_bindings_matrix.py')
| -rw-r--r-- | docs/shared_bindings_matrix.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/docs/shared_bindings_matrix.py b/docs/shared_bindings_matrix.py index 6e0fc34bd..e327d6ec6 100644 --- a/docs/shared_bindings_matrix.py +++ b/docs/shared_bindings_matrix.py @@ -185,7 +185,7 @@ def get_excluded_boards(base): board_is_excluded = True # check if module is specifically disabled for this board - re_pattern = "CIRCUITPY_{}\s=\s(\w)".format(module.upper()) + re_pattern = r"CIRCUITPY_{}\s=\s(\w)".format(module.upper()) find_module = re.search(re_pattern, contents) if not find_module: if base[module]["default_value"].isdigit(): @@ -204,9 +204,7 @@ def get_excluded_boards(base): ]): check_dependent_modules[module] = base[module]["default_value"] else: - if (find_module.group(1) == "0" and - find_module.group(1) != base[module]["default_value"]): - board_is_excluded = True + board_is_excluded = find_module.group(1) == "0" if board_is_excluded: if board_chip in base[module]["excluded"]: |
