From 41aeadfb5f9d1a5fd8a411244f6395ca8d6a9d1e Mon Sep 17 00:00:00 2001 From: Jeremy Schoemaker Date: Tue, 25 Aug 2026 13:00:03 -0500 Subject: [PATCH 1/2] fix(configparser): restore space delimiter splitting option/value Fix verified RED->GREEN. configparser regression: space delimiter no longer splits option/value at Lib/configparser.py:618 - delimiters=( , =) parsing foo bar=baz yields option foo bar instead of foo, new regex greedily consumes \s+word as part of option --- Lib/configparser.py | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/Lib/configparser.py b/Lib/configparser.py index 3c452afe8ade485..f64c3bf525230d2 100644 --- a/Lib/configparser.py +++ b/Lib/configparser.py @@ -670,7 +670,27 @@ def __init__(self, defaults=None, dict_type=_default_dict, self._optcre = self.OPTCRE_NV if allow_no_value else self.OPTCRE else: d = "|".join(re.escape(d) for d in delimiters) - if allow_no_value: + if any(dl.strip() == "" for dl in delimiters): + if allow_no_value: + self._optcre = re.compile( + r""" + (?P