diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-03-29 22:30:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-29 22:30:27 (GMT) |
commit | 3a27be79527368804c3a1c19c5bbe07a8e8ce41e (patch) | |
tree | a57514d9bb78e2561e70ab79df2a44513c0f9f29 /Lib | |
parent | 4abf1f1e3fe91f905faa6dd269c7a9aefea2a5a8 (diff) | |
download | cpython-3a27be79527368804c3a1c19c5bbe07a8e8ce41e.zip cpython-3a27be79527368804c3a1c19c5bbe07a8e8ce41e.tar.gz cpython-3a27be79527368804c3a1c19c5bbe07a8e8ce41e.tar.bz2 |
[3.10] gh-103112: Add http.client.HTTPResponse.read docstring and fix pydoc output (GH-103113) (#103120)
(cherry picked from commit d052a383f1a0c599c176a12c73a761ca00436d8b)
Co-authored-by: Bernhard Wagner <github.comNotification20120125@xmlizer.net>
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>
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/http/client.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/http/client.py b/Lib/http/client.py index 28527fa..d1b7b10 100644 --- a/Lib/http/client.py +++ b/Lib/http/client.py @@ -448,6 +448,7 @@ class HTTPResponse(io.BufferedIOBase): 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"" |