-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-35885: configparser indent #18522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-Authored-By: Victor Stinner <vstinner@python.org>
…mic/cpython into bpo-35885-configparserIndent
Adding @taleinat |
Codecov Report
@@ Coverage Diff @@
## master #18522 +/- ##
==========================================
- Coverage 82.20% 82.07% -0.13%
==========================================
Files 1958 1955 -3
Lines 589743 584080 -5663
Branches 44457 44458 +1
==========================================
- Hits 484772 479364 -5408
+ Misses 95308 95089 -219
+ Partials 9663 9627 -36
Continue to review full report at Codecov.
|
Write the configuration state in .ini format. If | ||
`space_around_delimiters' is True (the default), delimiters | ||
between keys and values are surrounded by spaces. | ||
|
||
If `indent' is empty (the default), the keys won't be indented. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doc-string needs to mention what will happen when indent is set to a non-empty value.
@@ -0,0 +1,3 @@ | |||
:class:`configparser` :func:`write()` method have a new parameter `indent` of type string. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:class:`configparser` :func:`write()` method have a new parameter `indent` of type string. | |
Add a new parameter ``indent`` to :meth:`configparser.write()`. | |
@@ -0,0 +1,3 @@ | |||
:class:`configparser` :func:`write()` method have a new parameter `indent` of type string. | |||
When indent is set, the parser will indent the lines according to the given input value. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO this is too much information for the NEWS entry, but something like this should be added to the doc-string.
@@ -0,0 +1,3 @@ | |||
:class:`configparser` :func:`write()` method have a new parameter `indent` of type string. | |||
When indent is set, the parser will indent the lines according to the given input value. | |||
Contributed by Ido Michael in :issue:`35885` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Contributed by Ido Michael in :issue:`35885` | |
Contributed by Ido Michael. |
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
@idomic, something with how you're managing your PR branches is very problematic. Would you mind closing this PR and opening a new, clean one? |
bpo-35885: configparser indent
https://bugs.python.org/issue35885