Skip to content

Commit

Permalink
Merge pull request #1678 from JZQT/master
Browse files Browse the repository at this point in the history
Modify an inappropriate comments for tornado.httpclient.AsyncHTTPClient
  • Loading branch information
bdarnell committed Mar 31, 2016
2 parents 350e688 + 667883a commit 060c0a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tornado/httpclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 060c0a9

Please sign in to comment.