From: Konstantin Date: Mon, 2 Dec 2013 08:04:01 +0000 (+0300) Subject: Update gen.py X-Git-Tag: v3.2.0b1~26^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F949%2Fhead;p=thirdparty%2Ftornado.git Update gen.py Docs. Missing closing parenthesis on example. --- diff --git a/tornado/gen.py b/tornado/gen.py index 23ad0aa35..5ce52efd3 100644 --- a/tornado/gen.py +++ b/tornado/gen.py @@ -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")