]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Modify an inappropriate comments for tornado.httpclient.AsyncHTTPClient 1678/head
authorJZQT <jzqt@witcoder.com>
Thu, 31 Mar 2016 15:30:01 +0000 (23:30 +0800)
committerJZQT <jzqt@witcoder.com>
Thu, 31 Mar 2016 15:30:01 +0000 (23:30 +0800)
tornado/httpclient.py

index 32ce1e0b6867161766f2b197f77e5c5624395054..c80172160891e11e1461d2a7df5e62b8f2bc45f8 100644 (file)
@@ -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