From 8bce0230a466a2ad0a9a45d6bc3ef21635217bf7 Mon Sep 17 00:00:00 2001 From: Steve Bedford Date: Thu, 15 Mar 2018 13:49:57 -0400 Subject: [PATCH] llapi: Fix read call on HTTPResponse 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. --- scripts/lib/llapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/llapi.py b/scripts/lib/llapi.py index ef059fc..72f5049 100644 --- a/scripts/lib/llapi.py +++ b/scripts/lib/llapi.py @@ -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)