diff options
| author | Tim Konick <konick781@gmail.com> | 2014-09-22 12:46:07 -0400 |
|---|---|---|
| committer | Tim Konick <konick781@gmail.com> | 2014-09-22 12:46:07 -0400 |
| commit | d6470870d08828c1d332ae446d5288eaab55d1f1 (patch) | |
| tree | 34e4afb4ad3a679ec2451e6195ee9b72dfd37c48 /requests/models.py | |
| parent | fdf932c61c7ff77d494a4a413cc5fbdb71328ac7 (diff) | |
| download | python-requests-d6470870d08828c1d332ae446d5288eaab55d1f1.tar.gz | |
rm `else` after `if` then `raise` block
Diffstat (limited to 'requests/models.py')
| -rw-r--r-- | requests/models.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/requests/models.py b/requests/models.py index a6af6427..5974507b 100644 --- a/requests/models.py +++ b/requests/models.py @@ -658,9 +658,8 @@ class Response(object): if self._content_consumed and isinstance(self._content, bool): raise RuntimeError( 'The content for this response was already consumed') - else: - # simulate reading small chunks of the content - reused_chunks = iter_slices(self._content, chunk_size) + # simulate reading small chunks of the content + reused_chunks = iter_slices(self._content, chunk_size) stream_chunks = generate() |
