FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-103112: Add http.client.HTTPResponse.read docstring and fix pydoc output by bwagner · Pull Request #103113 · python/cpython · GitHub

/ cpython Public
1 change: 1 addition & 0 deletions Lib/http/client.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

Back | FazBrowse Home | New Git URL