#NEWLINE# def apply_response_middleware( self , request , response , resolver ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# for middleware_method in self . _response_middleware : #NEWLINE# #INDENT# response = middleware_method ( request , response ) #NEWLINE# #UNINDENT# response = self . apply_response_fixes ( request , response ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# signals . got_request_exception . send ( sender = self . __class__ , request = request ) #NEWLINE# response = self . handle_uncaught_exception ( request , resolver , sys . exc_info ( ) ) #NEWLINE# #UNINDENT# return response