mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Whitespace normalization.
This commit is contained in:
parent
b0ead4ea4a
commit
230a60c6ec
7 changed files with 27 additions and 28 deletions
|
@ -371,7 +371,7 @@ class HTTPResponse:
|
|||
|
||||
if self.chunked:
|
||||
return self._read_chunked(amt)
|
||||
|
||||
|
||||
if amt is None:
|
||||
# unbounded read
|
||||
if self.will_close:
|
||||
|
@ -441,7 +441,7 @@ class HTTPResponse:
|
|||
self.close()
|
||||
|
||||
return value
|
||||
|
||||
|
||||
def _safe_read(self, amt):
|
||||
"""Read the number of bytes requested, compensating for partial reads.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue