]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Merge: #14645: Generator now emits correct linesep for all parts.
authorR David Murray <rdmurray@bitdance.com>
Thu, 7 Mar 2013 21:43:58 +0000 (16:43 -0500)
committerR David Murray <rdmurray@bitdance.com>
Thu, 7 Mar 2013 21:43:58 +0000 (16:43 -0500)
commitaddb0be63e82fd99d931c227b07a8f515ad3d181
tree94a4f714faf6d318496d8b076c43625516286a10
parent0e7ec44aa976dfbf2c8dd0f82078138646052959
parente67c6c545b3b102fb84eb9317d8b83fb2ca2ca56
Merge: #14645: Generator now emits correct linesep for all parts.

Previously the parts of the message retained whatever linesep they had on
read, which means if the messages weren't read in univeral newline mode, the
line endings could well be inconsistent.  In general sending it via smtplib
would result in them getting fixed, but it is better to generate them
correctly to begin with.  Also, the new send_message method of smtplib does
not do the fixup, so that method is producing rfc-invalid output without this
fix.
Lib/email/generator.py
Lib/test/test_email/test_email.py
Misc/NEWS