Mercurial > cpython-lru_cache-weakref
diff Lib/ConfigParser.py @ 40587:6b18a095c2e7
SF patch 1631942 by Collin Winter:
(a) "except E, V" -> "except E as V"
(b) V is now limited to a simple name (local variable)
(c) V is now deleted at the end of the except block
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 10 Jan 2007 16:19:56 +0000 |
| parents | cc992d75d5b3 |
| children | f340cb045bf9 |
line wrap: on
line diff
--- a/Lib/ConfigParser.py Wed Jan 10 01:29:06 2007 +0000 +++ b/Lib/ConfigParser.py Wed Jan 10 16:19:56 2007 +0000 @@ -567,7 +567,7 @@ value = self._KEYCRE.sub(self._interpolation_replace, value) try: value = value % vars - except KeyError, e: + except KeyError as e: raise InterpolationMissingOptionError( option, section, rawval, e[0]) else:
