Skip to content
Myr

Fix out-of-range issue with iter_lines (#515).

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

authored by Antony Chazapis · committed by Antony Chazapis · parent 53d60ca · 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
749 unmodified lines
750 if pending is not None:751 chunk = pending + chunk752 lines = chunk.splitlines()753754 if lines[-1][-1] == chunk[-1]:754 if lines and lines[-1] and chunk and lines[-1][-1] == chunk[-1]:755 pending = lines.pop()756 else:757 pending = None758
89 unmodified lines