From: Brett Cannon Date: Sat, 2 Aug 2008 03:37:50 +0000 (+0000) Subject: Remove a __getitem__() removal on an exception to silence a warning triggered X-Git-Tag: v2.6b3~171 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=97b1fb6a98809e82a76953522bd3d334cbbd4260;p=thirdparty%2FPython%2Fcpython.git Remove a __getitem__() removal on an exception to silence a warning triggered under -3. --- diff --git a/Lib/ConfigParser.py b/Lib/ConfigParser.py index 65c6ae2ae389..b6af6f9bab91 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: