mercurial/keepalive.py
changeset 32667 2806c7bbcb5e
parent 31999 aa836f56c3cc
child 32668 d7626e85dada
equal deleted inserted replaced
32666:dd0bdeb0feee 32667:2806c7bbcb5e
   351     # Both readline and readlines have been stolen with almost no
   351     # Both readline and readlines have been stolen with almost no
   352     # modification from socket.py
   352     # modification from socket.py
   353 
   353 
   354 
   354 
   355     def __init__(self, sock, debuglevel=0, strict=0, method=None):
   355     def __init__(self, sock, debuglevel=0, strict=0, method=None):
   356         httplib.HTTPResponse.__init__(self, sock, debuglevel, method)
   356         httplib.HTTPResponse.__init__(self, sock, debuglevel=debuglevel,
       
   357                                       strict=True, method=method)
   357         self.fileno = sock.fileno
   358         self.fileno = sock.fileno
   358         self.code = None
   359         self.code = None
   359         self._rbuf = ''
   360         self._rbuf = ''
   360         self._rbufsize = 8096
   361         self._rbufsize = 8096
   361         self._handler = None # inserted by the handler later
   362         self._handler = None # inserted by the handler later