Kaydet (Commit) bf97ebb2 authored tarafından Scott Sanderson's avatar Scott Sanderson

BUG: Fix errors in Python 3 from JSON-decoding bytes.

üst 5ce02b9f
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment