#NEWLINE# def _lookup( self , name , cls , qtype , timeout ) : #NEWLINE# #INDENT# '\n        Return the result or failure on lookup.\n        ' #NEWLINE# if ( self . results is not None ) : #NEWLINE# #INDENT# return defer . succeed ( ( self . results , [ ] , [ ] ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return defer . fail ( self . failure )