mirror of
https://github.com/python/cpython.git
synced 2025-11-18 18:31:56 +00:00
Docstring consistency with the updated .tex files.
This commit is contained in:
parent
1f84ff1d40
commit
2d7fab1a45
1 changed files with 3 additions and 3 deletions
|
|
@ -22,9 +22,9 @@ class MIMEText(MIMENonMultipart):
|
||||||
|
|
||||||
_subtype is the MIME sub content type, defaulting to "plain".
|
_subtype is the MIME sub content type, defaulting to "plain".
|
||||||
|
|
||||||
_charset is the character set parameter added to the Content-Type:
|
_charset is the character set parameter added to the Content-Type
|
||||||
header. This defaults to "us-ascii". Note that as a side-effect, the
|
header. This defaults to "us-ascii". Note that as a side-effect, the
|
||||||
Content-Transfer-Encoding: header will also be set.
|
Content-Transfer-Encoding header will also be set.
|
||||||
|
|
||||||
The use of the _encoder is deprecated. The encoding of the payload,
|
The use of the _encoder is deprecated. The encoding of the payload,
|
||||||
and the setting of the character set parameter now happens implicitly
|
and the setting of the character set parameter now happens implicitly
|
||||||
|
|
@ -42,7 +42,7 @@ class MIMEText(MIMENonMultipart):
|
||||||
warnings.warn('_encoder argument is obsolete.',
|
warnings.warn('_encoder argument is obsolete.',
|
||||||
DeprecationWarning, 2)
|
DeprecationWarning, 2)
|
||||||
# Because set_payload() with a _charset will set its own
|
# Because set_payload() with a _charset will set its own
|
||||||
# Content-Transfer-Encoding: header, we need to delete the
|
# Content-Transfer-Encoding header, we need to delete the
|
||||||
# existing one or will end up with two of them. :(
|
# existing one or will end up with two of them. :(
|
||||||
del self['content-transfer-encoding']
|
del self['content-transfer-encoding']
|
||||||
_encoder(self)
|
_encoder(self)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue