File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -257,15 +257,15 @@ def _fail_multiple_default_toolchains(first, second):
257
257
second = second ,
258
258
))
259
259
260
- def _process_tag_classes (mod ):
261
- arg_structs = []
260
+ def _process_tag_classes (mod , fail = fail ):
261
+ registrations = []
262
262
seen_versions = {}
263
263
available_versions = {}
264
264
available_versions .update (TOOL_VERSIONS )
265
265
base_url = DEFAULT_RELEASE_BASE_URL
266
266
267
267
for tag in mod .tags .toolchain :
268
- arg_structs .append (_create_toolchain_attrs_struct (tag = tag , toolchain_tag_count = len (mod .tags .toolchain )))
268
+ registrations .append (_create_toolchain_attrs_struct (tag = tag , toolchain_tag_count = len (mod .tags .toolchain )))
269
269
seen_versions [tag .python_version ] = True
270
270
271
271
if mod .is_root :
@@ -307,7 +307,7 @@ def _process_tag_classes(mod):
307
307
break
308
308
309
309
if register_all :
310
- arg_structs .extend ([
310
+ registrations .extend ([
311
311
_create_toolchain_attrs_struct (python_version = v )
312
312
for v in available_versions .keys ()
313
313
if v not in seen_versions
@@ -316,7 +316,7 @@ def _process_tag_classes(mod):
316
316
return struct (
317
317
available_versions = available_versions ,
318
318
base_url = base_url ,
319
- registrations = arg_structs ,
319
+ registrations = registrations ,
320
320
)
321
321
322
322
def _create_toolchain_attrs_struct (* , tag = None , python_version = None , toolchain_tag_count = None ):
You can’t perform that action at this time.
0 commit comments