R. David Murray added the comment: I'm not entirely sure why some of the conversions are done they way they are, but I do know that one goal is to make all of the line endings consistent, whatever may be the case on disk. If you aren't modifing the mailbox, nothing should happen. If you are, rewriting it to be consistent would seem to me to be the correct thing to do.
If you want to propose a patch that optionally guesses the line discipline of the input file and uses it on rewrite, we'll consider it, but I'm really not sure it is worth it unless it actually simplifies the existing code and/or makes it more consistent, while still meeting the existing behavior of handling mixed line endings in the input files. ---------- type: behavior -> enhancement versions: -Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30412> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com