Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/url.py @ 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 | 72803c8edaa4 |
children | df2155ebf502 |
comparison
equal
deleted
inserted
replaced
18175:fd3f8b87b682 | 18176:ffec6d0a5ed6 |
---|---|
162 | 162 |
163 except socket.error, msg: | 163 except socket.error, msg: |
164 if sock is not None: | 164 if sock is not None: |
165 sock.close() | 165 sock.close() |
166 | 166 |
167 raise socket.error, msg | 167 raise socket.error(msg) |
168 | 168 |
169 class httpconnection(keepalive.HTTPConnection): | 169 class httpconnection(keepalive.HTTPConnection): |
170 # must be able to send big bundle as stream. | 170 # must be able to send big bundle as stream. |
171 send = _gen_sendfile(keepalive.HTTPConnection.send) | 171 send = _gen_sendfile(keepalive.HTTPConnection.send) |
172 | 172 |