Skip to content

Commit 3a27be7

Browse files
miss-islingtonbwagnerblurb-it[bot]terryjreedymerwok
authored
[3.10] gh-103112: Add http.client.HTTPResponse.read docstring and fix pydoc output (GH-103113) (#103120)
(cherry picked from commit d052a38) Co-authored-by: Bernhard Wagner <[email protected]> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Terry Jan Reedy <[email protected]> Co-authored-by: Éric <[email protected]>
1 parent 4abf1f1 commit 3a27be7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Lib/http/client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ def isclosed(self):
448448
return self.fp is None
449449

450450
def read(self, amt=None):
451+
"""Read and return the response body, or up to the next amt bytes."""
451452
if self.fp is None:
452453
return b""
453454

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add docstring to :meth:`http.client.HTTPResponse.read` to fix ``pydoc`` output.

0 commit comments

Comments
 (0)