From b73f7ae4175b155f4251a9bd8069fabce33818cc Mon Sep 17 00:00:00 2001 From: sundeep8967 Date: Wed, 26 Aug 2026 02:25:33 +0530 Subject: [PATCH 1/5] gh-156353: Fix configparser space delimiter parsing This commit fixes a bug introduced in gh-146333 where using a space as a delimiter would cause the option name parsing to incorrectly absorb the space. The regular expressions _OPT_TMPL and _OPT_NV_TMPL have been adjusted to ensure that whitespace matches do not consume valid delimiters. Signed-off-by: sundeep8967 --- Lib/configparser.py | 4 ++-- Lib/test/test_configparser.py | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Lib/configparser.py b/Lib/configparser.py index 3c452afe8ade485..26207fbbdaaf458 100644 --- a/Lib/configparser.py +++ b/Lib/configparser.py @@ -618,7 +618,7 @@ class RawConfigParser(MutableMapping): _OPT_TMPL = r""" (?P