]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Bugfix in asynchronous_fetch example code. 1106/head
authorA. Jesse Jiryu Davis <jesse@mongodb.com>
Fri, 11 Jul 2014 17:05:18 +0000 (13:05 -0400)
committerA. Jesse Jiryu Davis <jesse@mongodb.com>
Fri, 11 Jul 2014 17:05:18 +0000 (13:05 -0400)
docs/guide/async.rst

index e4ead74bafdd2920a0a9ec66aa0e26b2049ebe50..8d5f27c6acc47bb9eb896a653d5464f5ba88d478 100644 (file)
@@ -78,7 +78,7 @@ callback argument::
         http_client = AsyncHTTPClient()
         def handle_response(response):
             callback(response.body)
-        http_client.fetch(url)
+        http_client.fetch(url, callback=handle_response)
 
 And again with a `.Future` instead of a callback::