This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients barry, maxking, msapiro, r.david.murray
Date 2017-11-27.21:54:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1511819693.64.0.213398074469.issue32144@psf.upfronthosting.co.za>
In-reply-to
Content
Your are reading the documentation wrong.  For linesep, it says "The string to be used to terminate lines in serialized output."  The key word there is "output".  email operates in "universal newline mode" when parsing messages, turning all line endings into python's internal \n format.  What the linesep policy controls is the *output* line separator.

Note that the python2 behavior for decode=True is arguably a bug, but not one we are going to fix for backward compatibility reasons.
History
Date User Action Args
2017-11-27 21:54:53r.david.murraysetrecipients: + r.david.murray, barry, msapiro, maxking
2017-11-27 21:54:53r.david.murraysetmessageid: <1511819693.64.0.213398074469.issue32144@psf.upfronthosting.co.za>
2017-11-27 21:54:53r.david.murraylinkissue32144 messages
2017-11-27 21:54:53r.david.murraycreate