Skip to content
This repository has been archived by the owner on Nov 15, 2020. It is now read-only.

Commit

Permalink
Merge pull request #17 from elricho/master
Browse files Browse the repository at this point in the history
readall() not available in python 3.5 revert to read()
  • Loading branch information
elricho committed Mar 15, 2016
2 parents 40575e6 + e67ce85 commit 421762a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions handsetdetection/HD4.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 421762a

Please sign in to comment.