R. David Murray <rdmur...@bitdance.com> added the comment:

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.

----------
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32144>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to