Łukasz Langa <luk...@langa.pl> added the comment:

That is indeed the behaviour. Citing the tutorial: "Python on Windows makes a 
distinction between text and binary files; the end-of-line characters in text 
files are automatically altered slightly when data is read or written."

When you're opening the file in binary mode, \n characters are not altered. 
Opening a file that way specifies programmer intent and I don't think we should 
force os.linesep in that case.

----------
resolution:  -> works for me
stage:  -> committed/rejected
status: open -> closed

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

Reply via email to