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

Commit

Permalink
Fix python 3 json unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
ritiek committed Jul 17, 2017
1 parent 403a2bc commit 973d1cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions trunofficial/trunofficial.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def __init__(self, number):
params = urlencode(raw_params)
url_params = URL + params
response = urlopen(url_params).read()
response = response.decode('utf-8')
parsed = json.loads(response)

basic = parsed['data'][0]
Expand Down

0 comments on commit 973d1cc

Please sign in to comment.