Skip to content

Commit b9ffb07

Browse files
author
brett.cannon
committed
Remove a __getitem__() removal on an exception to silence a warning triggered
under -3. git-svn-id: http://svn.python.org/projects/python/trunk@65395 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 6e39cbb commit b9ffb07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/ConfigParser.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ def _interpolate(self, section, option, rawval, vars):
588588
value = value % vars
589589
except KeyError, e:
590590
raise InterpolationMissingOptionError(
591-
option, section, rawval, e[0])
591+
option, section, rawval, e.args[0])
592592
else:
593593
break
594594
if "%(" in value:

0 commit comments

Comments
 (0)