Skip to content
Myr

rm `else` after `if` then `raise` block

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

authored by Tim Konick · committed by Tim Konick · parent fdf932c · Browse files · 1 file+2 added−3 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+2 added−3 removed

  • other:+2 added−3 removed

1 file+2 added−3 removed

modified:requests/models.py+2 added-3 removed
656 unmodified lines
657658 if self._content_consumed and isinstance(self._content, bool):659 raise RuntimeError(660 'The content for this response was already consumed')661 else:662 # simulate reading small chunks of the content663 reused_chunks = iter_slices(self._content, chunk_size)661 # simulate reading small chunks of the content662 reused_chunks = iter_slices(self._content, chunk_size)663664 stream_chunks = generate()665666 chunks = reused_chunks if self._content_consumed else stream_chunks
155 unmodified lines