summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsommersoft <sommersoft@users.noreply.github.com>2020-01-21 18:18:08 -0600
committerGitHub <noreply@github.com>2020-01-21 18:18:08 -0600
commited2d94cae92b12ca0af3dc44db11ef7e2486cad8 (patch)
tree34a93ca17fc781fe6df7cfcf5520fadbd6928d16
parent1daac3a5f41a2161a3df613cc25d2b524626179e (diff)
parente1840f6abcca0e2ef085332663fc7c0f42c41829 (diff)
Merge pull request #2543 from pewpew-game/support-matrix
Fix entry overrides in support matrix generation
-rw-r--r--docs/shared_bindings_matrix.py6
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"]: