我试图从http://tech.shift.com/post/40299429203/implementing-a-python-oauth-2-0-provider-part-2运行 oauth 提供程序。
但是行:
flask_res = flask.make_response(response.text, response.status_code)
产生错误:
flask_res = flask.make_response(response.text, response.status_code)
File "/usr/local/lib/python2.7/dist-packages/requests/models.py", line 616, in text
if not self.content:
File "/usr/local/lib/python2.7/dist-packages/requests/models.py", line 594, in content
self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or bytes()
File "/usr/local/lib/python2.7/dist-packages/requests/models.py", line 541, in generate
chunk = self.raw.read(chunk_size, decode_content=True)
TypeError: read() takes no keyword arguments
为什么?:|