Skip to content
Myr

Set iter_lines() decode_unicode default to False

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

The docs just read a bit strange with `decode_unicode=None` as opposed to `False`.

authored by Kyle Altendorf · committed by GitHub · parent c501ec9 · 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