#NEWLINE# def get_dict_with_key( self , x , key ) : #NEWLINE# #INDENT# ' check a list for a dict that has a key ' #NEWLINE# for item in x : #NEWLINE# #INDENT# if ( key in item ) : #NEWLINE# #INDENT# return item [ key ] #NEWLINE# #UNINDENT# #UNINDENT# return None