From 81cec22a9bd0090bdcf037bd8eafab1d5b58b582 Mon Sep 17 00:00:00 2001 From: "R. David Murray" Date: Fri, 31 Oct 2025 09:09:22 -0400 Subject: [PATCH] gh-57665: Remove 'response_class' from getresponse docstring. (#140707) Remove 'response_class' from getresponse docstring. This variable is not documented as part of the API in the standard library documentation; it should be considered as an implementation detail and as such should not be included in the doc string. Closes #57665. --- Lib/http/client.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/http/client.py b/Lib/http/client.py index 0cce49cadc09..425d9bdad8cd 100644 --- a/Lib/http/client.py +++ b/Lib/http/client.py @@ -1391,8 +1391,7 @@ class HTTPConnection: """Get the response from the server. If the HTTPConnection is in the correct state, returns an - instance of HTTPResponse or of whatever object is returned by - the response_class variable. + instance of HTTPResponse. If a request has not been sent or if a previous response has not be handled, ResponseNotReady is raised. If the HTTP -- 2.47.3