>>714
ioが標準動作がそうなだけでstringは各改行コードを保持する
https://docs.python.org/ja/3/library/io.html
の特にnewlineのあたり読んでみて