#NEWLINE# def start_response( self , status , headers , exc_info = None ) : #NEWLINE# #INDENT# if exc_info : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# if ( self . status and self . headers_sent ) : #NEWLINE# #INDENT# reraise ( exc_info [ 0 ] , exc_info [ 1 ] , exc_info [ 2 ] ) #NEWLINE# #UNINDENT# #UNINDENT# finally : #NEWLINE# #INDENT# exc_info = None #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( headers . status is not None ) : #NEWLINE# #INDENT# raise AssertionError ( 'Response headers already set!' ) #NEWLINE# #UNINDENT# #UNINDENT# self . status = status #NEWLINE# try : #NEWLINE# #INDENT# self . status_code = int ( self . status . split ( ) [ 0 ] ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# self . status_code = None #NEWLINE# #UNINDENT# self . process_headers ( headers ) #NEWLINE# self . chunked = self . is_chunked ( ) #NEWLINE# return self . write