summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNate Prewitt <nate.prewitt@gmail.com>2018-11-09 12:44:34 -0800
committerGitHub <noreply@github.com>2018-11-09 12:44:34 -0800
commitbedd9284c9646e50c10b3defdf519d4ba479e2c7 (patch)
treea93cc9f701dec4fa24668e96e9d66547e650c958
parent6cfbe1aedd56f8c2f9ff8b968efe65b22669795b (diff)
parent36412c5ae73730324430fef41455ff2bdd944287 (diff)
downloadpython-requests-bedd9284c9646e50c10b3defdf519d4ba479e2c7.tar.gz
Merge pull request #4861 from altendky/patch-1
Set iter_lines() decode_unicode default to False
-rw-r--r--requests/models.py2
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.