summaryrefslogtreecommitdiff
path: root/setuptools/command/upload.py
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2013-06-17 19:23:33 +0100
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2013-06-17 19:23:33 +0100
commit1961cbe6164c403810e07f39c88c58241fac2d41 (patch)
tree5ab51684b42509cf1ed8fc906de3a9065926713d /setuptools/command/upload.py
parent8fab6264672e2a2b7762a0316b708100032b6d6d (diff)
downloadpython-setuptools-bitbucket-1961cbe6164c403810e07f39c88c58241fac2d41.tar.gz
Misc. updates following 2to3 checks.
Diffstat (limited to 'setuptools/command/upload.py')
-rwxr-xr-xsetuptools/command/upload.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/setuptools/command/upload.py b/setuptools/command/upload.py
index 7ef0e6ec..02d955ed 100755
--- a/setuptools/command/upload.py
+++ b/setuptools/command/upload.py
@@ -11,6 +11,7 @@ try:
except ImportError:
from md5 import md5
import os
+import sys
import socket
import platform
import base64
@@ -167,7 +168,8 @@ class upload(Command):
http.putheader('Authorization', auth)
http.endheaders()
http.send(body)
- except socket.error, e:
+ except socket.error:
+ e = sys.exc_info()[1]
self.announce(str(e), log.ERROR)
return