Skip to content
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

gh-107625: configparser: Raise ParsingError if a key contains empty value #107651

Merged
merged 23 commits into from
Mar 6, 2024

Conversation

Agent-Hellboy
Copy link
Contributor

@Agent-Hellboy Agent-Hellboy commented Aug 5, 2023

  • raise ParsingError instead of AttributeError if a key contains an empty value in a non-recommended scenario where extra space and a blank line is present within the section

📚 Documentation preview 📚: https://cpython-previews--107651.org.readthedocs.build/

- raise ParsingError instaed of AttributeError if a key
  contains empty value in a non recommended scenario where
  extra space and blankline is present within the section
@AlexWaygood AlexWaygood changed the title gh-107625: Raise ParsingError if a key contains empty value gh-107625: configparser: Raise ParsingError if a key contains empty value Aug 5, 2023
Doc/library/configparser.rst Outdated Show resolved Hide resolved
Doc/library/configparser.rst Outdated Show resolved Hide resolved
Doc/library/configparser.rst Outdated Show resolved Hide resolved
Doc/library/configparser.rst Outdated Show resolved Hide resolved
Lib/configparser.py Outdated Show resolved Hide resolved
Agent-Hellboy and others added 2 commits August 6, 2023 00:21
@bedevere-bot
Copy link

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 I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@Agent-Hellboy
Copy link
Contributor Author

I have made the requested changes; please review again.

@bedevere-bot
Copy link

Thanks for making the requested changes!

@ambv: please review the changes made to this pull request.

@bedevere-bot bedevere-bot requested a review from ambv August 11, 2023 04:14
@ambv
Copy link
Contributor

ambv commented Aug 11, 2023

Closing and re-opening to retrigger CLA checks. Sorry for the noise.

@ambv ambv closed this Aug 11, 2023
@ambv ambv reopened this Aug 11, 2023
@Agent-Hellboy
Copy link
Contributor Author

Hi @ambv, I thought you closed the PR, but it's still open, I have resolved your comments, please look again.

@encukou
Copy link
Member

encukou commented Mar 4, 2024

I've merged main to fix a conflict, and reworded the docs & error to be more succinct. I hope you don't mind me pushing directly to the PR -- I wanted to test my suggestions locally so I already had them as commits.
Does this wording look OK to you?

Lib/configparser.py Outdated Show resolved Hide resolved
Copy link
Member

@jaraco jaraco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
@Agent-Hellboy
Copy link
Contributor Author

Does this wording look OK to you?

yeah, it's better than the earlier error. Thanks

@encukou encukou dismissed ambv’s stale review March 6, 2024 13:40

The issues were resolved

@encukou encukou enabled auto-merge (squash) March 6, 2024 13:41
@encukou encukou merged commit e800265 into python:main Mar 6, 2024
31 checks passed
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 25, 2024
…inued (pythonGH-107651)


Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
…inued (pythonGH-107651)


Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants