mercurial/keepalive.py
changeset 6001 30d2fecaab76
parent 5915 d0576d065993
parent 5983 6f1fcbc58efa
child 6470 ac0bcd951c2c
--- 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