summaryrefslogtreecommitdiff
path: root/requests/models.py
diff options
context:
space:
mode:
authorTim Konick <konick781@gmail.com>2014-09-22 12:46:07 -0400
committerTim Konick <konick781@gmail.com>2014-09-22 12:46:07 -0400
commitd6470870d08828c1d332ae446d5288eaab55d1f1 (patch)
tree34e4afb4ad3a679ec2451e6195ee9b72dfd37c48 /requests/models.py
parentfdf932c61c7ff77d494a4a413cc5fbdb71328ac7 (diff)
downloadpython-requests-d6470870d08828c1d332ae446d5288eaab55d1f1.tar.gz
rm `else` after `if` then `raise` block
Diffstat (limited to 'requests/models.py')
-rw-r--r--requests/models.py5
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()