Mercurial > public > mercurial-scm > hg
diff mercurial/keepalive.py @ 6001:30d2fecaab76
merge with crew-stable
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Sun, 03 Feb 2008 21:47:07 -0200 |
parents | d0576d065993 6f1fcbc58efa |
children | ac0bcd951c2c |
line wrap: on
line diff
--- a/mercurial/keepalive.py Sat Feb 02 21:01:43 2008 +0100 +++ b/mercurial/keepalive.py Sun Feb 03 21:47:07 2008 -0200 @@ -175,7 +175,7 @@ else: return dict(self._hostmap) -class HTTPHandler(urllib2.HTTPHandler): +class KeepAliveHandler: def __init__(self): self._cm = ConnectionManager() @@ -314,6 +314,9 @@ except socket.error, err: # XXX what error? raise urllib2.URLError(err) +class HTTPHandler(KeepAliveHandler, urllib2.HTTPHandler): + pass + class HTTPResponse(httplib.HTTPResponse): # we need to subclass HTTPResponse in order to # 1) add readline() and readlines() methods