#NEWLINE# def response( self , msgid , error , result ) : #NEWLINE# #INDENT# 'Handle a results message given to the proxy by the protocol object.' #NEWLINE# if error : #NEWLINE# #INDENT# self . requests [ msgid ] . errback ( Exception ( str ( error ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . requests [ msgid ] . callback ( result ) #NEWLINE# #UNINDENT# del self . requests [ msgid ]