8000 gh-103112: Add http.client.HTTPResponse.read docstring and fix pydoc … · python/cpython@d052a38 · GitHub
[go: up one dir, main page]

Skip to content

Commit d052a38

Browse files
bwagnerblurb-it[bot]terryjreedymerwok
authored
gh-103112: Add http.client.HTTPResponse.read docstring and fix pydoc output (#103113)
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Éric <merwok@netwok.org>
1 parent e375bff commit d052a38

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)
0