Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Remove explicit empty"" handling in ConfigParser#2047

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

EliahKagan
Copy link
Member

@EliahKaganEliahKagan commentedJun 8, 2025
edited
Loading

One of the benefits of#2035 is that it automatically handles a quoted empty value, i.e.name = "", correctly. Previously, this was handled as a special case, so that it would work even though other quoted values did not work (#1923). Since#2035, it is not necessary to handle it specially. Accordingly, this PR:

  • Adds a regression test for values represented as"" (4ebe407).
  • Removes the obsolete special-case logic (2f22524).

The ConfigParser has supported this for a long time, but it is nowdone redundantly sincegitpython-developers#2035. This adds a test for it, both to makeclearer that it is intended to work and to allow verifying that itcontinues to hold once the legacy special-casing for it is removed.
@EliahKaganEliahKagan changed the titleRemove explicit"" handling in ConfigParserRemove explicit empty"" handling in ConfigParserJun 8, 2025
Because literal `""` is a special case of `"..."` as parsedsincegitpython-developers#2035.
@EliahKaganEliahKagan marked this pull request as ready for reviewJune 8, 2025 05:00
@EliahKaganEliahKagan merged commit646dc16 intogitpython-developers:mainJun 8, 2025
27 checks passed
@EliahKaganEliahKagan deleted the quoted-empty branchJune 8, 2025 05:00
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@EliahKagan

[8]ページ先頭

©2009-2025 Movatter.jp