Skip to content

Conversation

@Preocts
Copy link
Owner

@Preocts Preocts commented Jun 22, 2025

Normally options are normalized to lowercase during the read process. This results in a formatting change on write that can be frustrating if camelCase is used for option names.

This change ensures the optionxform() method does not apply the .lower() converstion during reading.

Options remain case insensitive while using a ConfigParser object as expected.

Normally options are normalized to lowercase during the read process.
This results in a formatting change on write that can be frustrating if
camelCase is used for option names.

This change ensures the `optionxform()` method does not apply the
`.lower()` converstion during reading.

Options remain case insensitive while using a ConfigParser object as
expected.
@Preocts Preocts self-assigned this Jun 22, 2025
@Preocts Preocts marked this pull request as ready for review June 22, 2025 21:59
@Preocts Preocts merged commit c459d02 into main Jun 22, 2025
19 checks passed
@Preocts Preocts deleted the preserve-option-case branch June 22, 2025 21:59
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.

2 participants