From e202700f4fd1ba6b0a0b31d423509e118d01cd15 Mon Sep 17 00:00:00 2001 From: "R. David Murray" Date: Thu, 7 May 2009 01:39:25 +0000 Subject: Document how to pass a 'decode' argument to get_payload when is_multipart is False. --- Doc/library/email.message.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Doc/library/email.message.rst b/Doc/library/email.message.rst index 0e79b6c..9fead22 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]) -- cgit v0.12