From 616cb0bb656d6070d9c2af4185c7922b2af134c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Wed, 30 Oct 2019 22:21:50 +0000 Subject: [PATCH] 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. --- stdlib/3/http/client.pyi | 1 + 1 file changed, 1 insertion(+) diff --git a/stdlib/3/http/client.pyi b/stdlib/3/http/client.pyi index 633634d68..02e8d7002 100644 --- a/stdlib/3/http/client.pyi +++ b/stdlib/3/http/client.pyi @@ -129,6 +129,7 @@ class HTTPConnection: timeout: float host: str port: int + sock: Any if sys.version_info >= (3, 7): def __init__( self,