From 71b8941f0e5c2ea5901a4f7ec6f397d443d9104b Mon Sep 17 00:00:00 2001 From: Nate Prewitt Date: Mon, 14 Nov 2016 09:43:19 -0700 Subject: [PATCH] adding decoding requirement for Python 3 --- docs/user/advanced.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/user/advanced.rst b/docs/user/advanced.rst index ac6dd6b5..de4a3000 100644 --- a/docs/user/advanced.rst +++ b/docs/user/advanced.rst @@ -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::