changeset 25660 | 328739ea70c3 |
parent 25429 | 9d1c61715939 |
child 25837 | d343806dcf68 |
--- a/mercurial/httpconnection.py Tue Jun 23 22:38:21 2015 -0700 +++ b/mercurial/httpconnection.py Tue Jun 23 22:20:08 2015 -0700 @@ -211,7 +211,7 @@ path = '/' + path h.request(req.get_method(), path, req.data, headers) r = h.getresponse() - except socket.error, err: # XXX what error? + except socket.error as err: # XXX what error? raise urllib2.URLError(err) # Pick apart the HTTPResponse object to get the addinfourl