Emmanuel Arias <eam...@yaerobi.com> added the comment:

Hello everybody!

When a new file is loaded, the current loadfile read for the newline to set
the eol_convention. As does not exist for a empty file a None is saved and
for that reason the exception is raised

If you consider that this patch is correct I cant submit a PR

Cheers

----------
keywords: +patch
nosy: +eamanu
Added file: 
https://bugs.python.org/file49334/0001-Fix-eol_convention-when-file-does-not-exist.patch

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

Reply via email to