SIGN IN SIGN UP

[3.11] gh-116957: configparser: Do post-process values after DuplicateOptionError (GH-116958) (GH-117012)

If you catch DuplicateOptionError / DuplicateSectionError when reading a
config file (the intention is to skip invalid config files) and then
attempt to use the ConfigParser instance, any values it *had* read
successfully so far, were stored as a list instead of string! Later
`get` calls would raise "AttributeError: 'list' object has no attribute
'find'" from somewhere deep in the interpolation code.

(cherry picked from commit b1bc37597f0d36084c4dcb15977fe6d4b9322cd4)
D
David Röthlisberger committed
b517fd5e1638fc21062476f95cd735341117513b
Parent: bb7a6d4
Committed by GitHub <noreply@github.com> on 3/19/2024, 5:19:04 PM