Skip to content

Commit

Permalink
llapi: Fix read call on HTTPResponse
Browse files Browse the repository at this point in the history
Back in Python 3.5.0, the HTTPResponse base class changed from RawIOBase to
BufferedIOBase, and the 'readall' method went away. 'read' should have always
been used, anyway.
  • Loading branch information
mgpb committed Mar 15, 2018
1 parent 62b66b5 commit 8bce023
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/lib/llapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def _do_api_call(request_dict, json_response):
if not json_response:
return f

response = f.readall().decode('utf-8')
response = f.read().decode('utf-8')
return json.loads(response, object_pairs_hook=OrderedDict)


Expand Down

0 comments on commit 8bce023

Please sign in to comment.