#NEWLINE# def set( self , value ) : #NEWLINE# #INDENT# if ( value is None ) : #NEWLINE# #INDENT# value = '' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( not isinstance ( self , str ) ) : #NEWLINE# #INDENT# raise TypeError ( ( "invalid type '%s' for string stream" % type ( value ) . __name__ ) ) #NEWLINE# #UNINDENT# #UNINDENT# self . _value = value