[issue32917] ConfigParser writes a superfluous final blank line

Serhiy Storchaka report at bugs.python.org
Sat Mar 10 05:36:50 EST 2018


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

I thought a blank line between sections is just for readability, and no program will break if drop it. Removing the final blank line can harm the readability in the case of sequential writes to the same file (unless we detect the start of the file, that is problematic in the case of non-seekable streams). But I didn't thought that a superfluous final blank line causes any problems. What software has a problem with it?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32917>
_______________________________________


More information about the Python-bugs-list mailing list