aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/sandbox.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-01-04 11:35:16 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-01-04 11:35:16 -0500
commit9d6a6e5927ae0e67164383e419f3145fc154467e (patch)
tree8872d8b6de4c8706a5178dcb3dab2c9803216e59 /setuptools/sandbox.py
parenta849ee957f3ba12945278f88e473eb3612faf4b9 (diff)
downloadexternal_python_setuptools-9d6a6e5927ae0e67164383e419f3145fc154467e.tar.gz
external_python_setuptools-9d6a6e5927ae0e67164383e419f3145fc154467e.tar.bz2
external_python_setuptools-9d6a6e5927ae0e67164383e419f3145fc154467e.zip
Use except/as, now supported by Python 2.6
Diffstat (limited to 'setuptools/sandbox.py')
-rwxr-xr-xsetuptools/sandbox.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/setuptools/sandbox.py b/setuptools/sandbox.py
index b90d1e1b..7971f42c 100755
--- a/setuptools/sandbox.py
+++ b/setuptools/sandbox.py
@@ -199,8 +199,7 @@ def run_setup(setup_script, args):
ns = dict(__file__=setup_script, __name__='__main__')
_execfile(setup_script, ns)
DirectorySandbox(setup_dir).run(runner)
- except SystemExit:
- v = sys.exc_info()[1]
+ except SystemExit as v:
if v.args and v.args[0]:
raise
# Normal exit, just return