Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
2d7fab1a
Commit
2d7fab1a
authored
Oct 01, 2002
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docstring consistency with the updated .tex files.
parent
1f84ff1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Lib/email/MIMEText.py
Lib/email/MIMEText.py
+3
-3
No files found.
Lib/email/MIMEText.py
View file @
2d7fab1a
...
@@ -22,9 +22,9 @@ class MIMEText(MIMENonMultipart):
...
@@ -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):
...
@@ -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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment