#NEWLINE# def _set_text( self , value ) : #NEWLINE# #INDENT# if ( not isinstance ( self , basestring ) ) : #NEWLINE# #INDENT# raise TypeError ( 'text must be a string' ) #NEWLINE# #UNINDENT# self . _text = value