Skip to content
Myr

Changing parameter name `newline` ==> `delimiter`.

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

authored by Val Tenyotkin · committed by Val Tenyotkin · parent f5ff05b · Browse files · 1 file+3 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+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:requests/models.py+3 added-3 removed
680 unmodified lines
681 chunks = stream_decode_response_unicode(chunks, self)682683 return chunks684685 def iter_lines(self, chunk_size=ITER_CHUNK_SIZE, decode_unicode=None, newline=None):685 def iter_lines(self, chunk_size=ITER_CHUNK_SIZE, decode_unicode=None, delimiter=None):686 """Iterates over the response data, one line at a time. When687 stream=True is set on the request, this avoids reading the688 content at once into memory for large responses.689 """
4 unmodified lines
694695 if pending is not None:696 chunk = pending + chunk697698 if newline:699 lines = chunk.split(newline)698 if delimiter:699 lines = chunk.split(delimiter)700 else:701 lines = chunk.splitlines()702703 if lines and lines[-1] and chunk and lines[-1][-1] == chunk[-1]:
134 unmodified lines