twython3k: simplejson wants string, not bytes
This commit is contained in:
parent
af37b7f52d
commit
22fef638ab
1 changed files with 1 additions and 1 deletions
|
|
@ -155,7 +155,7 @@ class Twython(object):
|
|||
url = base + "?" + "&".join(["%s=%s" %(key, value) for (key, value) in list(kwargs.items())])
|
||||
resp, content = self.client.request(url, fn['method'])
|
||||
|
||||
return simplejson.loads(content)
|
||||
return simplejson.loads(content.decode('utf-8'))
|
||||
|
||||
if api_call in api_table:
|
||||
return get.__get__(self)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue