Skip to content

Commit

Permalink
pythongh-103112: Add http.client.HTTPResponse.read docstring and fix …
Browse files Browse the repository at this point in the history
…pydoc output (python#103113)

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]>
  • Loading branch information
4 people authored Mar 29, 2023
1 parent e375bff commit d052a38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Lib/http/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ def isclosed(self):
return self.fp is None

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

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add docstring to :meth:`http.client.HTTPResponse.read` to fix ``pydoc`` output.

0 comments on commit d052a38

Please sign in to comment.