]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-57665: Remove 'response_class' from getresponse docstring. (#140707)
authorR. David Murray <rdmurray@bitdance.com>
Fri, 31 Oct 2025 13:09:22 +0000 (09:09 -0400)
committerGitHub <noreply@github.com>
Fri, 31 Oct 2025 13:09:22 +0000 (06:09 -0700)
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

index 0cce49cadc09fae27e77a019cc04f4fb5ce61028..425d9bdad8cdb5cfa041f0b0ebd572456d0cbc96 100644 (file)
@@ -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