comparison mercurial/keepalive.py @ 40031:f2dffa1359c6

url: have httpsconnection inherit from our custom HTTPConnection This will ensure that any customizations we perform to HTTPConnection will be available to httpsconnection. Differential Revision: https://phab.mercurial-scm.org/D4855
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 01 Oct 2018 12:06:36 -0700
parents 1cf1680b0554
children dc82ad1b7f77
comparison
equal deleted inserted replaced
40030:62160d3077cd 40031:f2dffa1359c6
613 return cls.getresponse(self) 613 return cls.getresponse(self)
614 safegetresponse.__doc__ = cls.getresponse.__doc__ 614 safegetresponse.__doc__ = cls.getresponse.__doc__
615 return safegetresponse 615 return safegetresponse
616 616
617 class HTTPConnection(httplib.HTTPConnection): 617 class HTTPConnection(httplib.HTTPConnection):
618 # url.httpsconnection inherits from this. So when adding/removing
619 # attributes, be sure to audit httpsconnection() for unintended
620 # consequences.
621
618 # use the modified response class 622 # use the modified response class
619 response_class = HTTPResponse 623 response_class = HTTPResponse
620 send = safesend 624 send = safesend
621 getresponse = wrapgetresponse(httplib.HTTPConnection) 625 getresponse = wrapgetresponse(httplib.HTTPConnection)
622 626