mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Remove the ability to slice/index on exceptions per PEP 352.
This commit is contained in:
parent
44c526174d
commit
ba7bf49a54
8 changed files with 16 additions and 46 deletions
|
@ -569,7 +569,7 @@ class ConfigParser(RawConfigParser):
|
|||
value = value % vars
|
||||
except KeyError as e:
|
||||
raise InterpolationMissingOptionError(
|
||||
option, section, rawval, e[0])
|
||||
option, section, rawval, e.message)
|
||||
else:
|
||||
break
|
||||
if "%(" in value:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue