#NEWLINE# def write( self , stuff ) : #NEWLINE# #INDENT# if isinstance ( stuff , unicode ) : #NEWLINE# #INDENT# stuff = stuff . encode ( 'utf-8' ) #NEWLINE# #UNINDENT# self . protocol . dataReceived ( self )