Skip to content

bpo-32917: make ConfigParser blank line writing controllable#5846

Closed
ghost wants to merge 1 commit intomasterfrom
unknown repository
Closed

bpo-32917: make ConfigParser blank line writing controllable#5846
ghost wants to merge 1 commit intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Feb 24, 2018

New arguments trim_final_blankline and blankline_around_sections for configparser.ConfigParser.write

If blankline_around_sections is true (the default), a blank line will be inserted after each section.
If trim_final_blankline is true, the final blank line after the last section will not be inserted.

https://bugs.python.org/issue32917

https://bugs.python.org/issue32917

Add two arguments *trim_final_blankline* and *blankline_around_sections*
to control the behavior of :meth:`ConfigParser.write` in writing blank lines.
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants