You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ConfigParser: writing a config with an empty unnamed section adds an extra newline to the beginning of the file #129678
If you read a config with an empty unnamed section using ConfigParser with allow_unnamed_section set to True and write it back, the resulting file will contain an extra newline at the beginning:
Activity
Merge branch 'main' into pythongh-129678
gh-129678: ConfigParser: do not write an empty unnamed section (GH-12…
encukou commentedon Feb 17, 2025
Thank you! Merged to the 3.14 branch.
I don't think this is a bug, though.
To avoid a point release changing the output, I'll not backport to 3.13.
PalmtopTiger commentedon Feb 17, 2025
Thank you!