[New-bugs-announce] [issue45349] configparser.ConfigParser: 2 newlines at end of file (EOF)
Boštjan Mejak
report at bugs.python.org
Sat Oct 2 21:02:54 EDT 2021
New submission from Boštjan Mejak <bostjan.xperia at gmail.com>:
In every Python version that I've tested, writing a config.ini file (utilizing configparser.ConfigParser), the result is such that the config.ini file has 2 newlines at the end of the file.
The problem is that source code editors like Sublime Text, or IDEs like PyCharm, already insert a newline at the end of a file, but then configparser.ConfigParser
(or maybe the Python's write() function?) insert its own as well.
Is it possible to fix this behavior?
----------
components: Library (Lib)
messages: 403069
nosy: PythonEnthusiast
priority: normal
severity: normal
status: open
title: configparser.ConfigParser: 2 newlines at end of file (EOF)
type: behavior
versions: Python 3.10, Python 3.11, Python 3.6, Python 3.7, Python 3.8, Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45349>
_______________________________________
More information about the New-bugs-announce
mailing list