diff options
| author | Nate Prewitt <nate.prewitt@gmail.com> | 2018-11-09 12:44:34 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-09 12:44:34 -0800 |
| commit | bedd9284c9646e50c10b3defdf519d4ba479e2c7 (patch) | |
| tree | a93cc9f701dec4fa24668e96e9d66547e650c958 /requests/models.py | |
| parent | 6cfbe1aedd56f8c2f9ff8b968efe65b22669795b (diff) | |
| parent | 36412c5ae73730324430fef41455ff2bdd944287 (diff) | |
| download | python-requests-bedd9284c9646e50c10b3defdf519d4ba479e2c7.tar.gz | |
Merge pull request #4861 from altendky/patch-1
Set iter_lines() decode_unicode default to False
Diffstat (limited to 'requests/models.py')
| -rw-r--r-- | requests/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/requests/models.py b/requests/models.py index 3dded57e..62dcd0b7 100644 --- a/requests/models.py +++ b/requests/models.py @@ -781,7 +781,7 @@ class Response(object): return chunks - def iter_lines(self, chunk_size=ITER_CHUNK_SIZE, decode_unicode=None, delimiter=None): + def iter_lines(self, chunk_size=ITER_CHUNK_SIZE, decode_unicode=False, delimiter=None): """Iterates over the response data, one line at a time. When stream=True is set on the request, this avoids reading the content at once into memory for large responses. |
