diff -r fd3f8b87b682 -r ffec6d0a5ed6 mercurial/url.py --- a/mercurial/url.py Tue Jan 01 12:50:23 2013 -0600 +++ b/mercurial/url.py Tue Jan 01 12:50:46 2013 -0600 @@ -164,7 +164,7 @@ if sock is not None: sock.close() - raise socket.error, msg + raise socket.error(msg) class httpconnection(keepalive.HTTPConnection): # must be able to send big bundle as stream.