mirror of
https://github.com/python/cpython.git
synced 2025-08-25 03:04:55 +00:00
gh-130941: Fix configparser
parsing values with allow_no_value
and interpolation
set (GH-130949)
This commit is contained in:
parent
8b7cb947c5
commit
c35c7353eb
3 changed files with 45 additions and 0 deletions
|
@ -541,6 +541,8 @@ class ExtendedInterpolation(Interpolation):
|
|||
except (KeyError, NoSectionError, NoOptionError):
|
||||
raise InterpolationMissingOptionError(
|
||||
option, section, rawval, ":".join(path)) from None
|
||||
if v is None:
|
||||
continue
|
||||
if "$" in v:
|
||||
self._interpolate_some(parser, opt, accum, v, sect,
|
||||
dict(parser.items(sect, raw=True)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue