Skip to content
Myr

Merge pull request #1122 from Lukasa/readline

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

Decrease default line length for iter_lines

authored by Kenneth Reitz · committed by Kenneth Reitz · parents b7242a1, 297aa04 · Browse files · 1 file+2 added−2 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−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:requests/models.py+2 added-2 removed
27 unmodified lines
28 is_py2, chardet, json, builtin_str, basestring)2930REDIRECT_STATI = (codes.moved, codes.found, codes.other, codes.temporary_moved)31CONTENT_CHUNK_SIZE = 10 * 102432ITER_CHUNK_SIZE = 10 * 102432ITER_CHUNK_SIZE = 5123334log = logging.getLogger(__name__)3536
83 unmodified lines
120 if isinstance(fp, str):121 fp = StringIO(fp)122 if isinstance(fp, bytes):123 fp = BytesIO(fp)124 124125 if ft:126 new_v = (fn, fp.read(), ft)127 else:128 new_v = (fn, fp.read())
513 unmodified lines