Skip to content

Update configparser.py #16772

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

Closed
wants to merge 1 commit into from
Closed

Update configparser.py #16772

wants to merge 1 commit into from

Conversation

HStry
Copy link

@HStry HStry commented Oct 14, 2019

RawConfigParser.set does not pass non-truthy values through to Interpolation.before_set

Apologies for missing bpo-NNNN, fix seems trivial, and first pull request, don't know my way around to create a bpo number yet.

RawConfigParser.set() fix to allow non-truthy values (False, None, 0 etc) to pass through to Interpolation.before_set(). Currently default value being None leading to unexpected results. Using the established _UNSET constant to determine a value being passed to set.

RawConfigParser.set() fix to allow non-truthy values (False, None, 0 etc) to pass through to Interpolation.before_set()
@the-knights-who-say-ni
Copy link

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed the PSF contributor agreement (CLA).

CLA Missing

Our records indicate the following people have not signed the CLA:

@HStry

For legal reasons we need all the people listed to sign the CLA before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

If you have recently signed the CLA, please wait at least one business day
before our records are updated.

You can check yourself to see if the CLA has been received.

Thanks again for the contribution, we look forward to reviewing it!

@serhiy-storchaka
Copy link
Member

It is not trivial, as it changes the behavior. So this change needs to be documented and tested. Note also that it breaks existing tests, so it may be not a desirable change.

@taleinat
Copy link
Contributor

Thanks for this PR, it looks like a nice fix!

Indeed, this is non-trivial as it would change behavior, i.e. break backwards compatibility. We'd need to decide that fixing this is worth the break.

Please go to bugs.python.org, create an account if you don't have one, and create an issue about this. That would be the best place to discuss this. Feel free to add me to the "nosy" list for the issue (my user is the same there) so that I may participate.

@csabella
Copy link
Contributor

@HStry, please address the code reviews and open a bug tracker issue for this. If a ticket isn't opened, we'll have to close your pull request. Thank you!

@HStry
Copy link
Author

HStry commented Jan 11, 2020 via email

@csabella
Copy link
Contributor

@HStry, thanks Hans. If you have any questions about the process, just let us know.

@csabella
Copy link
Contributor

I'm going to close this pull request due to inactivity. @HStry, if you're interested in pursuing this, please open an issue on the bug tracker. Once others have commented and agreed that the change should be made, a new PR could be created. Thanks!

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.

6 participants