]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-127096: Do not recreate unnamed section on every read in ConfigParser ...
authorJason R. Coombs <jaraco@jaraco.com>
Sun, 2 Feb 2025 18:53:23 +0000 (13:53 -0500)
committerGitHub <noreply@github.com>
Sun, 2 Feb 2025 18:53:23 +0000 (18:53 +0000)
commit6aa09a5898960b7a489503f42c2071e4c0736992
treea28578902afdd429cb8811b6a06b4cb2947c7855
parent65f3432ac32f92bc3d8b7b11103a56c5a70049c0
[3.13] gh-127096: Do not recreate unnamed section on every read in ConfigParser (GH-127228) (#129593)

* Do not recreate unnamed section on every read in ConfigParser

* Remove duplicate section creation code
(cherry picked from commit 914c232e9391e8e5014b089ba12c75d4a3b0cc7f)

Co-authored-by: Andrey Efremov <duxus@yandex.ru>
Lib/configparser.py
Lib/test/test_configparser.py
Misc/NEWS.d/next/Library/2024-11-24-22-06-42.gh-issue-127096.R7LLpQ.rst [new file with mode: 0644]