diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-08-02 03:37:50 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-08-02 03:37:50 (GMT) |
commit | 97b1fb6a98809e82a76953522bd3d334cbbd4260 (patch) | |
tree | 18386bbf95e069484615cbb46aa6ea0e5bc2b441 /Lib/ConfigParser.py | |
parent | 0d89407a0d6cb19648e2444dabddf77631f6525e (diff) | |
download | cpython-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.py | 2 |
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: |