mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +00:00
parent
790202d613
commit
27e9de669b
5 changed files with 38 additions and 78 deletions
|
|
@ -196,13 +196,7 @@ Here are the methods of the :class:`Message` class:
|
|||
|
||||
Set the entire message object's payload to *payload*. It is the client's
|
||||
responsibility to ensure the payload invariants. Optional *charset* sets
|
||||
the message's character set; see :meth:`set_charset` for details. If
|
||||
*payload* is a string containing non-ASCII characters, *charset* is
|
||||
required.
|
||||
|
||||
.. versionchanged:: 3.4
|
||||
Previous to 3.4 *charset* was not required when *payload* was a
|
||||
non-ASCII string, but omitting it produced nonsense results.
|
||||
the message's default character set; see :meth:`set_charset` for details.
|
||||
|
||||
.. method:: set_charset(charset)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue