#NEWLINE# def set_payload( self , payload , charset = None ) : #NEWLINE# #INDENT# "Set the payload to the given value.\n\n        Optional charset sets the message's default character set.  See\n        set_charset() for details.\n        " #NEWLINE# self . _payload = payload #NEWLINE# if ( charset is not None ) : #NEWLINE# #INDENT# self . set_charset ( payload )