#NEWLINE# def respond( self ) : #NEWLINE# #INDENT# 'Process the current request.' #NEWLINE# response = self . req . server . wsgi_app ( chunk . env , self . start_response ) #NEWLINE# try : #NEWLINE# #INDENT# for chunk in response : #NEWLINE# #INDENT# if chunk : #NEWLINE# #INDENT# if isinstance ( chunk , unicodestr ) : #NEWLINE# #INDENT# chunk = chunk . encode ( 'ISO-8859-1' ) #NEWLINE# #UNINDENT# self . write ( chunk ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# finally : #NEWLINE# #INDENT# if hasattr ( response , 'close' ) : #NEWLINE# #INDENT# response . close ( )