]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Update gen.py 949/head
authorKonstantin <knikitanov@me.com>
Mon, 2 Dec 2013 08:04:01 +0000 (11:04 +0300)
committerKonstantin <knikitanov@me.com>
Mon, 2 Dec 2013 08:04:01 +0000 (11:04 +0300)
Docs. Missing closing parenthesis on example.

tornado/gen.py

index 23ad0aa3525afe15270ed4e4a35c6593fe5ccf7b..5ce52efd313a0e2d8cbb591ecc4655a21bd07c15 100644 (file)
@@ -64,7 +64,7 @@ For more complicated interfaces, `Task` can be split into two parts:
         def get(self):
             http_client = AsyncHTTPClient()
             http_client.fetch("http://example.com",
-                              callback=(yield gen.Callback("key"))
+                              callback=(yield gen.Callback("key")))
             response = yield gen.Wait("key")
             do_something_with_response(response)
             self.render("template.html")