Fix example in docs.

This commit is contained in:
Ben Darnell 2014-07-15 22:47:21 -04:00
parent f1824029db
commit b96b6adf29
1 changed files with 1 additions and 1 deletions

View File

@ -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")