From 667883aa570476fb91a30dc574cad0867d963750 Mon Sep 17 00:00:00 2001 From: JZQT Date: Thu, 31 Mar 2016 23:30:01 +0800 Subject: [PATCH] Modify an inappropriate comments for tornado.httpclient.AsyncHTTPClient --- tornado/httpclient.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.2