#NEWLINE# def _text__set( self , value ) : #NEWLINE# #INDENT# if ( not self . charset ) : #NEWLINE# #INDENT# raise AttributeError ( 'You cannot access Response.text unless charset is set' ) #NEWLINE# #UNINDENT# if ( not isinstance ( value , text_type ) ) : #NEWLINE# #INDENT# raise TypeError ( ( 'You can only set Request.text to a unicode string (not %s)' % type ( value ) ) ) #NEWLINE# #UNINDENT# self . body = value . encode ( self . charset )