#NEWLINE# def wsgi_app( self , environ , start_response ) : #NEWLINE# #INDENT# with ensure_thread_local ( ) : #NEWLINE# #INDENT# request = Request ( environ ) #NEWLINE# if self . debug : #NEWLINE# #INDENT# response = self . dispatch_request ( self ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# response = self . dispatch_request ( request ) #NEWLINE# #UNINDENT# except Exception as exc : #NEWLINE# #INDENT# response = self . unhandled_exception_hook ( exc , request ) #NEWLINE# #UNINDENT# #UNINDENT# return response ( environ , start_response )