➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author PythonEnthusiast
Recipients PythonEnthusiast
Date 2021-10-03.01:02:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
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?
History
Date User Action Args
2021-10-03 01:02:54PythonEnthusiastsetrecipients: + PythonEnthusiast
2021-10-03 01:02:54PythonEnthusiastsetmessageid: <[email protected]>
2021-10-03 01:02:54PythonEnthusiastlinkissue45349 messages
2021-10-03 01:02:53PythonEnthusiastcreate