rm `else` after `if` then `raise` block
authorTim Konick <konick781@gmail.com>
Mon, 22 Sep 2014 16:46:07 +0000 (12:46 -0400)
committerTim Konick <konick781@gmail.com>
Mon, 22 Sep 2014 16:46:07 +0000 (12:46 -0400)
requests/models.py

index a6af6427600ef98674e8c2cb7db51f8d29ccfc07..5974507bc4bfd223f917f6336746df930b5a282f 100644 (file)
@@ -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()