#NEWLINE# def _make_subtasks( self , config ) : #NEWLINE# #INDENT# if ( self . version == 2 ) : #NEWLINE# #INDENT# return [ SubTask ( s ) for s in config [ 'subtasks' ] ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . version == 1 ) : #NEWLINE# #INDENT# subtasks = [ ] #NEWLINE# for ( name , v1_workloads ) in six . iteritems ( config ) : #NEWLINE# #INDENT# for v1_workload in v1_workloads : #NEWLINE# #INDENT# v2_workload = copy . deepcopy ( v1_workload ) #NEWLINE# v2_workload [ 'name' ] = name #NEWLINE# subtasks . append ( SubTask ( { #NEWLINE# #INDENT# 'title' : name , #NEWLINE# 'workloads' : [ v2_workload ] , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# #UNINDENT# #UNINDENT# return subtasks