From e67ce85d4510843d58067395392058910f7cc878 Mon Sep 17 00:00:00 2001 From: Richard Uren Date: Tue, 15 Mar 2016 15:10:55 +1100 Subject: [PATCH] readall() not available in python 3.5 revert to read() --- handsetdetection/HD4.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handsetdetection/HD4.py b/handsetdetection/HD4.py index e4b940c..aad2c09 100644 --- a/handsetdetection/HD4.py +++ b/handsetdetection/HD4.py @@ -278,9 +278,9 @@ def _do_request(self, uri, headers, data, replyType): ) response = urllib.request.urlopen(request) if replyType == 'json': - rawReply = response.readall().decode("utf-8") + rawReply = response.read().decode("utf-8") else: - rawReply = response.readall() + rawReply = response.read() except ImportError: # Python 2