Skip to content
Myr

Merge pull request #4661 from ofek/patch-2

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Response.content minor perf improvement

authored by Ian Stapleton Cordasco · committed by GitHub · parents fe8290b, c1b828b · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:requests/models.py+1 added-1 removed
822 unmodified lines
823824 if self.status_code == 0 or self.raw is None:825 self._content = None826 else:827 self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or bytes()827 self._content = b''.join(self.iter_content(CONTENT_CHUNK_SIZE)) or b''828829 self._content_consumed = True830 # don't need to release the connection; that's been handled by urllib3831 # since we exhausted the data.
121 unmodified lines