parameters: (self, payload, charset=None)
docstring: Set the payload to the given value.
  
          Optional charset sets the message's default character set.  See
          set_charset() for details.
docstring_summary: Set the payload to the given value.
docstring_tokens: Set the payload to the given value .
function: def set_payload(self, payload, charset=None):
          """Set the payload to the given value.
  
          Optional charset sets the message's default character set.  See
          set_charset() for details.
          """
          self._payload = payload
          if charset is not None:
              self.set_charset(charset)
function_tokens: def set_payload ( self , payload , charset = None ) : self . _payload = payload if charset is not None : self . set_charset ( charset )