File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments