mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
For email 2.5b1, we no longer add a trailing newline to
MIMEText.__init__()'s _text argument if it doesn't already end in a newline. This may be controversial.
This commit is contained in:
parent
12dc230c00
commit
a996d4f137
1 changed files with 1 additions and 2 deletions
|
|
@ -151,8 +151,7 @@ used to create MIME objects of major type \mimetype{text}.
|
|||
minor type and defaults to \mimetype{plain}. \var{_charset} is the
|
||||
character set of the text and is passed as a parameter to the
|
||||
\class{MIMENonMultipart} constructor; it defaults to \code{us-ascii}. No
|
||||
guessing or encoding is performed on the text data, but a newline is
|
||||
appended to \var{_text} if it doesn't already end with a newline.
|
||||
guessing or encoding is performed on the text data.
|
||||
|
||||
\deprecated{2.2.2}{The \var{_encoding} argument has been deprecated.
|
||||
Encoding now happens implicitly based on the \var{_charset} argument.}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue