# HG changeset patch # User Augie Fackler # Date 2013-01-01 18:50:46 # Node ID ffec6d0a5ed6c5e76266e0d98f79e5b283bfd2fb # Parent fd3f8b87b682d80e26b9ba269cc29e0f729c5261 url: clean up use of two-argument raise This makes any attempt to port to Python 3 harder, and the new syntax is supported in 2.4 already. diff --git a/mercurial/url.py b/mercurial/url.py --- a/mercurial/url.py +++ b/mercurial/url.py @@ -164,7 +164,7 @@ if has_https: 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.