From: JZQT Date: Thu, 31 Mar 2016 15:30:01 +0000 (+0800) Subject: Modify an inappropriate comments for tornado.httpclient.AsyncHTTPClient X-Git-Tag: v4.4.0b1~39^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=667883aa570476fb91a30dc574cad0867d963750;p=thirdparty%2Ftornado.git Modify an inappropriate comments for tornado.httpclient.AsyncHTTPClient --- diff --git a/tornado/httpclient.py b/tornado/httpclient.py index 32ce1e0b6..c80172160 100644 --- a/tornado/httpclient.py +++ b/tornado/httpclient.py @@ -108,14 +108,14 @@ class AsyncHTTPClient(Configurable): Example usage:: - def handle_request(response): + def handle_response(response): if response.error: print "Error:", response.error else: print response.body http_client = AsyncHTTPClient() - http_client.fetch("http://www.google.com/", handle_request) + http_client.fetch("http://www.google.com/", handle_response) The constructor for this class is magic in several respects: It actually creates an instance of an implementation-specific