[issue41378] IDLE EOL convention not set on a empty file

2020-07-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is a duplicate of issue41373 (and the problem is not only with empty files). -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> IDLE: edit/save files created by Windows Explorer ___

[issue41378] IDLE EOL convention not set on a empty file

2020-07-23 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue41378] IDLE EOL convention not set on a empty file

2020-07-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: This may have been caused by https://github.com/python/cpython/commit/c3fa7534c7173d338880a1727f17795670518610 for https://bugs.python.org/issue41378 -- ___ Python tracker

[issue41378] IDLE EOL convention not set on a empty file

2020-07-23 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue41378] IDLE EOL convention not set on a empty file

2020-07-23 Thread Emmanuel Arias
Emmanuel Arias 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 s

[issue41378] IDLE EOL convention not set on a empty file

2020-07-23 Thread Raymond Hettinger
New submission from Raymond Hettinger : I think this is a new bug, present in Python 3.8.5 but not present in 3.8.3. Steps to reproduce: * $ touch xyzpdq.py # Creates new file, zero bytes in length * $ python3.8 -m idlelib.idle xyzdpq.py * Enter text: print('hello wor