#NEWLINE# def _handle_output( self , buffer_ , hide , output , reader , indices ) : #NEWLINE# #INDENT# def get( ) : #NEWLINE# #INDENT# while True : #NEWLINE# #INDENT# data = reader ( self . read_chunk_size ) #NEWLINE# if ( not data ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# ( yield self . encode ( data ) ) #NEWLINE# #UNINDENT# #UNINDENT# for data in codecs . iterdecode ( get ( ) , self . encoding , errors = 'replace' ) : #NEWLINE# #INDENT# if ( not hide ) : #NEWLINE# #INDENT# output . write ( data ) #NEWLINE# output . flush ( ) #NEWLINE# #UNINDENT# buffer_ . append ( data ) #NEWLINE# self . respond ( buffer_ , data )