Skip to content

Commit 7378744

Browse files
committed
update regex module use to be python3.5 compatible
1 parent 42ed841 commit 7378744

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/shared_bindings_matrix.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ def build_json(modules, configs):
6161
#print(module, "|", find_config)
6262
if not find_config:
6363
continue
64-
full_build = int("FULL_BUILD" in find_config[0])
64+
full_build = int("FULL_BUILD" in find_config.group(0))
6565
#print(find_config[1])
6666
if not full_build:
67-
default_val = find_config[1]
67+
default_val = find_config.group(1)
6868
else:
6969
default_val = "None"
7070
base_json[search_name] = {
@@ -107,8 +107,8 @@ def get_excluded_boards(base_json):
107107
find_module = re.search(re_pattern, contents)
108108
if not find_module:
109109
continue
110-
if (find_module[1] == "0" and
111-
find_module[1] != base_json[module]["default_value"]):
110+
if (find_module.group(1) == "0" and
111+
find_module.group(1) != base_json[module]["default_value"]):
112112
base_json[module]["excluded"].append(entry.name)
113113

114114
return base_json

0 commit comments

Comments
 (0)