diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-04 11:35:16 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-04 11:35:16 -0500 |
commit | 9d6a6e5927ae0e67164383e419f3145fc154467e (patch) | |
tree | 8872d8b6de4c8706a5178dcb3dab2c9803216e59 /setuptools/command/upload_docs.py | |
parent | a849ee957f3ba12945278f88e473eb3612faf4b9 (diff) | |
download | external_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/command/upload_docs.py')
-rw-r--r-- | setuptools/command/upload_docs.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/setuptools/command/upload_docs.py b/setuptools/command/upload_docs.py index cd6c300c..001ee936 100644 --- a/setuptools/command/upload_docs.py +++ b/setuptools/command/upload_docs.py @@ -169,8 +169,7 @@ class upload_docs(upload): conn.putheader('Authorization', auth) conn.endheaders() conn.send(body) - except socket.error: - e = sys.exc_info()[1] + except socket.error as e: self.announce(str(e), log.ERROR) return |