mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
adding decoding requirement for Python 3
This commit is contained in:
@@ -496,7 +496,8 @@ set ``stream`` to ``True`` and iterate over the response with
|
||||
|
||||
# filter out keep-alive new lines
|
||||
if line:
|
||||
print(json.loads(line))
|
||||
decoded_line = line.decode('utf-8')
|
||||
print(json.loads(decoded_line))
|
||||
|
||||
.. warning::
|
||||
|
||||
|
||||
Reference in New Issue
Block a user