#NEWLINE# def _task_to_dict( task ) : #NEWLINE# #INDENT# param_dict = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( key , param ) in task . get_params ( ) : #NEWLINE# #INDENT# param_dict [ key ] = param . serialize ( getattr ( task , key ) ) #NEWLINE# #UNINDENT# return param_dict