Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

I missed that the file's attribute newlines can be None if no line separators 
were read. It can also be a tuple if mixed newlines are used. I think that 
eol_convention should be set to the default value os.linesep in these cases.

I am currently not able to test this since IDLE does not work on my computer 
after upgrading to Ubuntu 20.04.

----------
nosy: +serhiy.storchaka

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

Reply via email to