mirror of
https://github.com/python/cpython.git
synced 2025-11-10 22:36:18 +00:00
#11780: document that email.encoders throw TypeError on multipart messages.
This commit is contained in:
parent
969b8daf5a
commit
69ebfe43b0
1 changed files with 4 additions and 0 deletions
|
|
@ -18,6 +18,10 @@ exactly one argument, the message object to encode. They usually extract the
|
||||||
payload, encode it, and reset the payload to this newly encoded value. They
|
payload, encode it, and reset the payload to this newly encoded value. They
|
||||||
should also set the :mailheader:`Content-Transfer-Encoding` header as appropriate.
|
should also set the :mailheader:`Content-Transfer-Encoding` header as appropriate.
|
||||||
|
|
||||||
|
Note that these functions are not meaningful for a multipart message. They
|
||||||
|
must be applied to individual subparts instead, and will throw a
|
||||||
|
:exc:`TypeError` if passed a message whose type is multipart.
|
||||||
|
|
||||||
Here are the encoding functions provided:
|
Here are the encoding functions provided:
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue