Set iter_lines() decode_unicode default to False

The docs just read a bit strange with `decode_unicode=None` as opposed to `False`.
This commit is contained in:
Kyle Altendorf
2018-11-06 12:35:39 -05:00
committed by GitHub
parent c501ec986d
commit a7aa86a933
+1 -1
View File
@@ -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.