https://github.com/python/cpython/commit/81cec22a9bd0090bdcf037bd8eafab1d5b58b582
commit: 81cec22a9bd0090bdcf037bd8eafab1d5b58b582
branch: main
author: R. David Murray <[email protected]>
committer: orsenthil <[email protected]>
date: 2025-10-31T06:09:22-07:00
summary:
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.
files:
M Lib/http/client.py
diff --git a/Lib/http/client.py b/Lib/http/client.py
index 0cce49cadc09fa..425d9bdad8cdb5 100644
--- a/Lib/http/client.py
+++ b/Lib/http/client.py
@@ -1391,8 +1391,7 @@ def getresponse(self):
"""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
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]