@@ -118,7 +118,7 @@ def setup(self):
118118 if not self .data_location :
119119 current_workflows = self .return_workflows ()
120120
121- prep_ids = set ([ self .get_workflow (wf ).get_prep_id () for wf in current_workflows ])
121+ prep_ids = { self .get_workflow (wf ).get_prep_id () for wf in current_workflows }
122122
123123 other_workflows = sum ([self .get_prepid (prep_id ).get_workflows () \
124124 for prep_id in prep_ids ], [])
@@ -405,20 +405,20 @@ def group_errors(input_errors, grouping_function, **kwargs):
405405
406406 output = default_errors_format ()
407407
408- for subgroup , values in input_errors .iteritems ():
408+ for subgroup , values in input_errors .items ():
409409
410410 group = grouping_function (subgroup )
411411
412412 # We have three variables for everything, so we can write this by hand
413413 # Not ideal
414- for row , row_val in values ['errors' ].iteritems ():
415- for col , numerrors in row_val .iteritems ():
414+ for row , row_val in values ['errors' ].items ():
415+ for col , numerrors in row_val .items ():
416416 output [group ]['errors' ][row ][col ] += numerrors
417417
418418 output [group ]['sub' ][subgroup ] = values
419419 output [group ]['total' ] += values ['total' ]
420420
421- for key , func in kwargs .iteritems ():
421+ for key , func in kwargs .items ():
422422 output [group ][key ] = func (group )
423423
424424 return output
0 commit comments