twython3k: simplejson wants string, not bytes
This commit is contained in:
parent
e1f0b1ea56
commit
3fb328d2ec
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())])
|
url = base + "?" + "&".join(["%s=%s" %(key, value) for (key, value) in list(kwargs.items())])
|
||||||
resp, content = self.client.request(url, fn['method'])
|
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:
|
if api_call in api_table:
|
||||||
return get.__get__(self)
|
return get.__get__(self)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue