From bf97ebb2edfce57580c70680eef098be380352ad Mon Sep 17 00:00:00 2001 From: Scott Sanderson Date: Tue, 24 Feb 2015 11:23:00 -0500 Subject: [PATCH] BUG: Fix errors in Python 3 from JSON-decoding bytes. --- docker/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/client.py b/docker/client.py index 26adf286..6698d251 100644 --- a/docker/client.py +++ b/docker/client.py @@ -169,7 +169,7 @@ class Client(requests.Session): if reader._fp.chunk_left: data += reader.read(reader._fp.chunk_left) if decode: - data = json.loads(data) + data = json.loads(data.decode('utf-8')) yield data else: # Response isn't chunked, meaning we probably