adding decoding requirement for Python 3

This commit is contained in:
Nate Prewitt
2016-11-14 09:43:19 -07:00
parent 70f1f8ed35
commit 71b8941f0e
+2 -1
View File
@@ -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::