File "bot.py", line 9, in
c.set_code(code)
File "/Library/Python/2.7/site-packages/weibo.py", line 83, in set_code
self.set_token(tk['access_token'], time.time() + int(tk['expires_in']))
File "/Library/Python/2.7/site-packages/weibo.py", line 92, in set_token
params={'access_token': self.access_token})
TypeError: session() takes no arguments (1 given)
当执行c.set_code('code')时报错
Requests版本1.0.4
File "bot.py", line 9, in
c.set_code(code)
File "/Library/Python/2.7/site-packages/weibo.py", line 83, in set_code
self.set_token(tk['access_token'], time.time() + int(tk['expires_in']))
File "/Library/Python/2.7/site-packages/weibo.py", line 92, in set_token
params={'access_token': self.access_token})
TypeError: session() takes no arguments (1 given)