Message151829
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. |
|
Date |
User |
Action |
Args |
2012-01-23 17:17:37 | lukasz.langa | set | recipients:
+ lukasz.langa, mrblabla |
2012-01-23 17:17:37 | lukasz.langa | set | messageid: <1327339057.22.0.631866264436.issue13190@psf.upfronthosting.co.za> |
2012-01-23 17:17:36 | lukasz.langa | link | issue13190 messages |
2012-01-23 17:17:36 | lukasz.langa | create | |
|