[Python-checkins] r65395 - python/trunk/Lib/ConfigParser.py

brett.cannon python-checkins at python.org
Sat Aug 2 05:37:51 CEST 2008


Author: brett.cannon
Date: Sat Aug  2 05:37:50 2008
New Revision: 65395

Log:
Remove a __getitem__() removal on an exception to silence a warning triggered
under -3.


Modified:
   python/trunk/Lib/ConfigParser.py

Modified: python/trunk/Lib/ConfigParser.py
==============================================================================
--- python/trunk/Lib/ConfigParser.py	(original)
+++ python/trunk/Lib/ConfigParser.py	Sat Aug  2 05:37:50 2008
@@ -588,7 +588,7 @@
                     value = value % vars
                 except KeyError, e:
                     raise InterpolationMissingOptionError(
-                        option, section, rawval, e[0])
+                        option, section, rawval, e.args[0])
             else:
                 break
         if "%(" in value:


More information about the Python-checkins mailing list