mirror of https://github.com/python/cpython
Remove a __getitem__() removal on an exception to silence a warning triggered
under -3.
This commit is contained in:
parent
0d89407a0d
commit
97b1fb6a98
|
@ -588,7 +588,7 @@ class ConfigParser(RawConfigParser):
|
|||
value = value % vars
|
||||
except KeyError, e:
|
||||
raise InterpolationMissingOptionError(
|
||||
option, section, rawval, e[0])
|
||||
option, section, rawval, e.args[0])
|
||||
else:
|
||||
break
|
||||
if "%(" in value:
|
||||
|
|
Loading…
Reference in New Issue