--- a/mercurial/httpclient/socketutil.py Tue Jan 01 13:21:15 2013 -0600 +++ b/mercurial/httpclient/socketutil.py Tue Jan 01 13:25:07 2013 -0600 @@ -70,7 +70,7 @@ continue break if not sock: - raise socket.error, msg + raise socket.error(msg) return sock if ssl: