diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-03-20 11:54:30 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-03-20 11:54:30 (GMT) |
commit | c622bf3f8505fbbb33f0e772c4edc5b5e21e9157 (patch) | |
tree | 0af8a22193d765c5189def340b6f0148245f617c /Doc | |
parent | 6409989dc864fc5f70e1db6af451a37c9cab6ca9 (diff) | |
parent | ba7dd670cb5e4aa9c00c0e5347c53a46b3ec110a (diff) | |
download | cpython-c622bf3f8505fbbb33f0e772c4edc5b5e21e9157.zip cpython-c622bf3f8505fbbb33f0e772c4edc5b5e21e9157.tar.gz cpython-c622bf3f8505fbbb33f0e772c4edc5b5e21e9157.tar.bz2 |
Merge usage of argument/parameter and markup fixes from 3.3.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/email.mime.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/email.mime.rst b/Doc/library/email.mime.rst index acaba1c..192e353 100644 --- a/Doc/library/email.mime.rst +++ b/Doc/library/email.mime.rst @@ -116,7 +116,7 @@ Here are the classes: this data can be decoded by the standard Python module :mod:`sndhdr`, then the subtype will be automatically included in the :mailheader:`Content-Type` header. Otherwise you can explicitly specify the audio subtype via the *_subtype* - parameter. If the minor type could not be guessed and *_subtype* was not given, + argument. If the minor type could not be guessed and *_subtype* was not given, then :exc:`TypeError` is raised. Optional *_encoder* is a callable (i.e. function) which will perform the actual @@ -142,7 +142,7 @@ Here are the classes: this data can be decoded by the standard Python module :mod:`imghdr`, then the subtype will be automatically included in the :mailheader:`Content-Type` header. Otherwise you can explicitly specify the image subtype via the *_subtype* - parameter. If the minor type could not be guessed and *_subtype* was not given, + argument. If the minor type could not be guessed and *_subtype* was not given, then :exc:`TypeError` is raised. Optional *_encoder* is a callable (i.e. function) which will perform the actual @@ -183,12 +183,12 @@ Here are the classes: :class:`MIMEText` class is used to create MIME objects of major type :mimetype:`text`. *_text* is the string for the payload. *_subtype* is the minor type and defaults to :mimetype:`plain`. *_charset* is the character - set of the text and is passed as a parameter to the + 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`` codepoints, and ``utf-8`` otherwise. - Unless the ``_charset`` parameter is explicitly set to ``None``, the + Unless the *_charset* argument is explicitly set to ``None``, the MIMEText object created will have both a :mailheader:`Content-Type` header with a ``charset`` parameter, and a :mailheader:`Content-Transfer-Endcoding` header. This means that a subsequent ``set_payload`` call will not result |