#NEWLINE# def send( self , data ) : #NEWLINE# #INDENT# if ( not self . client ) : #NEWLINE# #INDENT# self . preload . append ( data ) #NEWLINE# return #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# data = ( data + '\r\n' ) . encode ( 'utf8' ) #NEWLINE# self . client . send ( data ) #NEWLINE# #UNINDENT# except socket . error : #NEWLINE# #INDENT# self . close ( )