Skip to content
Myr

Merge pull request #4861 from altendky/patch-1

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

Set iter_lines() decode_unicode default to False

authored by Nate Prewitt · committed by GitHub · parents 6cfbe1a, 36412c5 · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:requests/models.py+1 added-1 removed
779 unmodified lines
780 chunks = stream_decode_response_unicode(chunks, self)781782 return chunks783784 def iter_lines(self, chunk_size=ITER_CHUNK_SIZE, decode_unicode=None, delimiter=None):784 def iter_lines(self, chunk_size=ITER_CHUNK_SIZE, decode_unicode=False, delimiter=None):785 """Iterates over the response data, one line at a time. When786 stream=True is set on the request, this avoids reading the787 content at once into memory for large responses.788
165 unmodified lines