@@ -372,16 +372,16 @@ def workflow_clean(document: Dict[str, Any]) -> None:
372372 step_id = step .pop ("id" )
373373 step_id_len = len (step_id ) + 1
374374 step ["out" ] = []
375- for index , outp in enumerate (step ["outputs" ]):
376- with SourceLine (step ["outputs" ], index , Exception ):
375+ for index2 , outp in enumerate (step ["outputs" ]):
376+ with SourceLine (step ["outputs" ], index2 , Exception ):
377377 clean_outp_id = outp ["id" ]
378378 if clean_outp_id .startswith (step_id ):
379379 clean_outp_id = clean_outp_id [step_id_len :]
380380 step ["out" ].append (clean_outp_id )
381381 del step ["outputs" ]
382382 ins = CommentedMap ()
383- for index , inp in enumerate (step ["inputs" ]):
384- with SourceLine (step ["inputs" ], index , Exception ):
383+ for index3 , inp in enumerate (step ["inputs" ]):
384+ with SourceLine (step ["inputs" ], index3 , Exception ):
385385 ident = inp ["id" ]
386386 if ident .startswith (step_id ):
387387 ident = ident [step_id_len :]
@@ -446,8 +446,8 @@ def input_output_clean(document: Dict[str, Any]) -> None:
446446 if "$import" in param :
447447 meta = True
448448 if not meta :
449- for index , param in enumerate (document [param_type ]):
450- with SourceLine (document [param_type ], index , Exception ):
449+ for index2 , param in enumerate (document [param_type ]):
450+ with SourceLine (document [param_type ], index2 , Exception ):
451451 param_id = param .pop ("id" ).lstrip ("#" )
452452 if "type" in param :
453453 param ["type" ] = shorten_type (param ["type" ])
@@ -492,26 +492,26 @@ def hints_and_requirements_clean(document: Dict[str, Any]) -> None:
492492 if isinstance (entry , MutableMapping ):
493493 if "$import" in entry or "$include" in entry :
494494 meta = True
495- for index , entry in enumerate (document [section ]):
496- with SourceLine (document [section ], index , Exception ):
497- if isinstance (entry , MutableMapping ):
495+ for index2 , entry2 in enumerate (document [section ]):
496+ with SourceLine (document [section ], index2 , Exception ):
497+ if isinstance (entry2 , MutableMapping ):
498498 if (
499- "class" in entry
500- and entry ["class" ] == "CreateFileRequirement"
499+ "class" in entry2
500+ and entry2 ["class" ] == "CreateFileRequirement"
501501 ):
502- entry ["class" ] = "InitialWorkDirRequirement"
503- entry ["listing" ] = []
504- for filedef in entry ["fileDef" ]:
505- entry ["listing" ].append (
502+ entry2 ["class" ] = "InitialWorkDirRequirement"
503+ entry2 ["listing" ] = []
504+ for filedef in entry2 ["fileDef" ]:
505+ entry2 ["listing" ].append (
506506 {
507507 "entryname" : filedef ["filename" ],
508508 "entry" : filedef ["fileContent" ],
509509 }
510510 )
511- del entry ["fileDef" ]
511+ del entry2 ["fileDef" ]
512512 if not meta :
513- new_section [entry ["class" ]] = entry
514- del entry ["class" ]
513+ new_section [entry2 ["class" ]] = entry2
514+ del entry2 ["class" ]
515515 if not meta :
516516 document [section ] = new_section
517517
0 commit comments