summaryrefslogtreecommitdiffstats
path: root/Lib/ConfigParser.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-08-02 03:37:50 (GMT)
committerBrett Cannon <bcannon@gmail.com>2008-08-02 03:37:50 (GMT)
commit97b1fb6a98809e82a76953522bd3d334cbbd4260 (patch)
tree18386bbf95e069484615cbb46aa6ea0e5bc2b441 /Lib/ConfigParser.py
parent0d89407a0d6cb19648e2444dabddf77631f6525e (diff)
downloadcpython-97b1fb6a98809e82a76953522bd3d334cbbd4260.zip
cpython-97b1fb6a98809e82a76953522bd3d334cbbd4260.tar.gz
cpython-97b1fb6a98809e82a76953522bd3d334cbbd4260.tar.bz2
Remove a __getitem__() removal on an exception to silence a warning triggered
under -3.
Diffstat (limited to 'Lib/ConfigParser.py')
-rw-r--r--Lib/ConfigParser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/ConfigParser.py b/Lib/ConfigParser.py
index 65c6ae2..b6af6f9 100644
--- a/Lib/ConfigParser.py
+++ b/Lib/ConfigParser.py
@@ -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: