From: R. David Murray Date: Thu, 7 May 2009 01:39:25 +0000 (+0000) Subject: Document how to pass a 'decode' argument to get_payload when X-Git-Tag: v2.7a1~1258 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e202700f4fd1ba6b0a0b31d423509e118d01cd15;p=python Document how to pass a 'decode' argument to get_payload when is_multipart is False. --- diff --git a/Doc/library/email.message.rst b/Doc/library/email.message.rst index 0e79b6c8a4..9fead222cc 100644 --- a/Doc/library/email.message.rst +++ b/Doc/library/email.message.rst @@ -112,6 +112,9 @@ Here are the methods of the :class:`Message` class: *decode* flag is ``True``, then ``None`` is returned. The default for *decode* is ``False``. + To pass a value for the decode flag to a non-multipart message, specify + ``None`` as the value of *i*. + .. method:: set_payload(payload[, charset])