On 15.05.12 09:29, Ian Kelly wrote:
In Python 3 you can pass the argument newline='\r\n' to the open function when you open the file. I don't know of anything comparable in Python 2.
io.open supports "newline" argument. -- http://mail.python.org/mailman/listinfo/python-list