Mercurial > hg
changeset 18176:ffec6d0a5ed6
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.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Tue, 01 Jan 2013 12:50:46 -0600 |
parents | fd3f8b87b682 |
children | 203b7a759218 |
files | mercurial/url.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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.