Mercurial > cpython-lru_cache-weakref
diff setup.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 | 67287ca4e1e8 |
| children | 3f78274f2a34 |
line wrap: on
line diff
--- a/setup.py Wed Jan 10 01:29:06 2007 +0000 +++ b/setup.py Wed Jan 10 16:19:56 2007 +0000 @@ -186,7 +186,7 @@ try: build_ext.build_extension(self, ext) - except (CCompilerError, DistutilsError), why: + except (CCompilerError, DistutilsError) as why: self.announce('WARNING: building of extension "%s" failed: %s' % (ext.name, sys.exc_info()[1])) return @@ -208,7 +208,7 @@ self.get_ext_filename(self.get_ext_fullname(ext.name))) try: imp.load_dynamic(ext.name, ext_filename) - except ImportError, why: + except ImportError as why: self.announce('*** WARNING: renaming "%s" since importing it' ' failed: %s' % (ext.name, why), level=3) assert not self.inplace
