diff 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
line wrap: on
line diff
--- a/mercurial/keepalive.py	Wed Oct 03 09:43:01 2018 -0700
+++ b/mercurial/keepalive.py	Mon Oct 01 12:06:36 2018 -0700
@@ -615,6 +615,10 @@
     return safegetresponse
 
 class HTTPConnection(httplib.HTTPConnection):
+    # url.httpsconnection inherits from this. So when adding/removing
+    # attributes, be sure to audit httpsconnection() for unintended
+    # consequences.
+
     # use the modified response class
     response_class = HTTPResponse
     send = safesend