Skip to content

gh-154596: Fix configparser write() losing unnamed-section items to DEFAULT#154597

Open
tonghuaroot wants to merge 1 commit into
python:mainfrom
tonghuaroot:fix-configparser-unnamed-write-order
Open

gh-154596: Fix configparser write() losing unnamed-section items to DEFAULT#154597
tonghuaroot wants to merge 1 commit into
python:mainfrom
tonghuaroot:fix-configparser-unnamed-write-order

Conversation

@tonghuaroot

@tonghuaroot tonghuaroot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

write() outputs UNNAMED_SECTION items after the [DEFAULT] header. Since unnamed items have no section header, they get absorbed into DEFAULT on re-read. Fix: write unnamed items before [DEFAULT].

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.

1 participant