Mercurial > cpython-lru_cache-weakref
diff Lib/distutils/command/upload.py @ 80933:50d19c2fac82
Issue #16717: get rid of socket.error, replace with OSError
| author | Andrew Svetlov <andrew.svetlov@gmail.com> |
|---|---|
| date | Tue, 18 Dec 2012 23:10:48 +0200 |
| parents | ef16a3db4628 |
| children | b1244046f37a |
line wrap: on
line diff
--- a/Lib/distutils/command/upload.py Tue Dec 18 22:02:39 2012 +0200 +++ b/Lib/distutils/command/upload.py Tue Dec 18 23:10:48 2012 +0200 @@ -186,7 +186,7 @@ http.putheader('Authorization', auth) http.endheaders() http.send(body) - except socket.error as e: + except OSError as e: self.announce(str(e), log.ERROR) return
