summaryrefslogtreecommitdiff
path: root/Doc/library/email.mime.rst
diff options
context:
space:
mode:
authorDonald Stufft <donald@stufft.io>2016-05-02 07:04:59 -0400
committerDonald Stufft <donald@stufft.io>2016-05-02 07:04:59 -0400
commitbaf57d0df1f7f2dc0e1bc1eb6eb65ce7fcf3aea2 (patch)
tree3302a4bf51062a797f1c384e1a840409519d53b5 /Doc/library/email.mime.rst
parenta5031959cf49e2278937b2f1d014fff8329eb048 (diff)
parent102bb79e96da2faadd8a7d710262b57e48677dd2 (diff)
downloadcpython-baf57d0df1f7f2dc0e1bc1eb6eb65ce7fcf3aea2.tar.gz
Upgrade ensurepip bundled setuptools to 20.10.1
Diffstat (limited to 'Doc/library/email.mime.rst')
-rw-r--r--Doc/library/email.mime.rst6
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/library/email.mime.rst b/Doc/library/email.mime.rst
index 1d70225fc8..67d0a67954 100644
--- a/Doc/library/email.mime.rst
+++ b/Doc/library/email.mime.rst
@@ -195,7 +195,8 @@ Here are the classes:
set of the text and is passed as an argument to the
:class:`~email.mime.nonmultipart.MIMENonMultipart` constructor; it defaults
to ``us-ascii`` if the string contains only ``ascii`` code points, and
- ``utf-8`` otherwise.
+ ``utf-8`` otherwise. The *_charset* parameter accepts either a string or a
+ :class:`~email.charset.Charset` instance.
Unless the *_charset* argument is explicitly set to ``None``, the
MIMEText object created will have both a :mailheader:`Content-Type` header
@@ -206,3 +207,6 @@ Here are the classes:
``Content-Transfer-Encoding`` header, after which a ``set_payload`` call
will automatically encode the new payload (and add a new
:mailheader:`Content-Transfer-Encoding` header).
+
+ .. versionchanged:: 3.5
+ *_charset* also accepts :class:`~email.charset.Charset` instances.