#NEWLINE# def contains( self , task_id , node_id = None , result = None ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# if ( ( result is None ) and ( node_id is None ) ) : #NEWLINE# #INDENT# return ( task_id in self . _d ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( result is None ) : #NEWLINE# #INDENT# return ( node_id in node_id . _d [ task_id ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return ( result in self . _d [ task_id ] [ node_id ] ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# except KeyError : #NEWLINE# #INDENT# return False