#NEWLINE# def sendReply( self ) : #NEWLINE# #INDENT# data = '\n' . join ( self . sendData ) #NEWLINE# response = 'Content-Type: text/plain\n' #NEWLINE# response += ( 'Content-Length: %d\n\n' % len ( data ) ) #NEWLINE# response += data #NEWLINE# if ( sys . platform == 'win32' ) : #NEWLINE# #INDENT# import msvcrt #NEWLINE# msvcrt . setmode ( sys . stdout . fileno ( ) , os . O_BINARY ) #NEWLINE# #UNINDENT# sys . stdout . write ( response )