#NEWLINE# def write_string( self , s ) : #NEWLINE# #INDENT# if ( not isinstance ( s , bytes ) ) : #NEWLINE# #INDENT# s = s . encode ( 'utf-8' ) #NEWLINE# #UNINDENT# self . _write_size ( len ( s ) ) #NEWLINE# self . trans . write ( s )