changeset 45:bb0813966bff

python 2.4 compatability
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 02 Apr 2012 10:40:52 -0700
parents 14556787478c
children bb3c646e9516
files paint/package.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/paint/package.py	Fri Mar 30 16:46:49 2012 -0700
+++ b/paint/package.py	Mon Apr 02 10:40:52 2012 -0700
@@ -127,7 +127,7 @@
         exception = None
         try:
             code = call([sys.executable, 'setup.py', 'egg_info'], cwd=directory, stdout=subprocess.PIPE)
-        except BaseException, exception:
+        except Exception, exception:
             pass
         if code or exception:
             message = """Failure to generate egg_info
@@ -160,7 +160,7 @@
 
         try:
             egg_info = self._egg_info()
-        except BaseException, exception:
+        except Exception, exception:
             # try to get the package info from a file
             path = self._path()
             pkg_info = os.path.join(path, 'PKG-INFO')