Skip to content

Commit 81cec22

Browse files
authored
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.
1 parent e733dc9 commit 81cec22

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/http/client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,8 +1391,7 @@ def getresponse(self):
13911391
"""Get the response from the server.
13921392
13931393
If the HTTPConnection is in the correct state, returns an
1394-
instance of HTTPResponse or of whatever object is returned by
1395-
the response_class variable.
1394+
instance of HTTPResponse.
13961395
13971396
If a request has not been sent or if a previous response has
13981397
not be handled, ResponseNotReady is raised. If the HTTP

0 commit comments

Comments
 (0)