#NEWLINE# def result_set_to_dicts( self , resultset , keys ) : #NEWLINE# #INDENT# dicts = [ ] #NEWLINE# for item in resultset : #NEWLINE# #INDENT# item_dict = dict ( ( ( x , item [ x ] ) for x in keys ) ) #NEWLINE# dicts . append ( item_dict ) #NEWLINE# #UNINDENT# return dicts