From: Ben Darnell Date: Wed, 16 Jul 2014 02:47:21 +0000 (-0400) Subject: Fix example in docs. X-Git-Tag: v4.0.1~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b96b6adf29ab0da4743e3de4000670ebe01fb81e;p=thirdparty%2Ftornado.git Fix example in docs. --- diff --git a/docs/guide/structure.rst b/docs/guide/structure.rst index 12d771a57..646c6cb0b 100644 --- a/docs/guide/structure.rst +++ b/docs/guide/structure.rst @@ -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")