Fix example in docs.
This commit is contained in:
parent
f1824029db
commit
b96b6adf29
|
@ -329,7 +329,7 @@ For comparison, here is the same example using a coroutine::
|
|||
@tornado.gen.coroutine
|
||||
def get(self):
|
||||
http = tornado.httpclient.AsyncHTTPClient()
|
||||
yield http.fetch("http://friendfeed-api.com/v2/feed/bret")
|
||||
response = yield http.fetch("http://friendfeed-api.com/v2/feed/bret")
|
||||
json = tornado.escape.json_decode(response.body)
|
||||
self.write("Fetched " + str(len(json["entries"])) + " entries "
|
||||
"from the FriendFeed API")
|
||||
|
|
Loading…
Reference in New Issue