#NEWLINE# def handle_request( self , data ) : #NEWLINE# #INDENT# tmp_body = data [ : ( - 1 ) ] #NEWLINE# request = Request ( address = self . _address , Body = tmp_body ) #NEWLINE# handler = urls . Handler_mapping . get ( request . cmdid ) #NEWLINE# handler_instance = handler ( ) #NEWLINE# if isinstance ( handler_instance , BaseHandler ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# handler_instance . process ( request = self ) #NEWLINE# self . _stream . write ( handler_instance . res ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# baseLogger . error ( e . message ) #NEWLINE# #UNINDENT# #UNINDENT# self . read_request ( )