From 97b1fb6a98809e82a76953522bd3d334cbbd4260 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Sat, 2 Aug 2008 03:37:50 +0000 Subject: [PATCH] Remove a __getitem__() removal on an exception to silence a warning triggered under -3. --- Lib/ConfigParser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/ConfigParser.py b/Lib/ConfigParser.py index 65c6ae2ae38..b6af6f9bab9 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: