Add sock attribute for http.client.HTTPConnection in Python 3. (#3429)

The equivalent httplib.HTTPConnection class already include it for Python
2, despite the attribute not being documented for either version.
This commit is contained in:
Diego Elio Pettenò
2019-10-30 22:21:50 +00:00
committed by Sebastian Rittau
parent cd5cd12a35
commit 616cb0bb65

View File

@@ -129,6 +129,7 @@ class HTTPConnection:
timeout: float
host: str
port: int
sock: Any
if sys.version_info >= (3, 7):
def __init__(
self,