From: A. Jesse Jiryu Davis Date: Fri, 11 Jul 2014 17:05:18 +0000 (-0400) Subject: Bugfix in asynchronous_fetch example code. X-Git-Tag: v4.0.0~10^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1106%2Fhead;p=thirdparty%2Ftornado.git Bugfix in asynchronous_fetch example code. --- diff --git a/docs/guide/async.rst b/docs/guide/async.rst index e4ead74ba..8d5f27c6a 100644 --- a/docs/guide/async.rst +++ b/docs/guide/async.rst @@ -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::