parameters: (msg)
docstring: Encode the message's payload in Base64.
  
      Also, add an appropriate Content-Transfer-Encoding header.
docstring_summary: Encode the message's payload in Base64.
docstring_tokens: Encode the message s payload in Base64 .
function: def encode_base64(msg):
      """Encode the message's payload in Base64.
  
      Also, add an appropriate Content-Transfer-Encoding header.
      """
      orig = msg.get_payload()
      encdata = _bencode(orig)
      msg.set_payload(encdata)
      msg['Content-Transfer-Encoding'] = 'base64'
function_tokens: def encode_base64 ( msg ) : orig = msg . get_payload ( ) encdata = _bencode ( orig ) msg . set_payload ( encdata ) msg [ 'Content-Transfer-Encoding' ] = 'base64'