projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdf932c
)
rm `else` after `if` then `raise` block
author
Tim Konick
<konick781@gmail.com>
Mon, 22 Sep 2014 16:46:07 +0000
(12:46 -0400)
committer
Tim Konick
<konick781@gmail.com>
Mon, 22 Sep 2014 16:46:07 +0000
(12:46 -0400)
requests/models.py
patch
|
blob
|
history
diff --git
a/requests/models.py
b/requests/models.py
index a6af6427600ef98674e8c2cb7db51f8d29ccfc07..5974507bc4bfd223f917f6336746df930b5a282f 100644
(file)
--- 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()