]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Add missing import for AsyncHTTPClient 2328/head
authorCharles Chan <charleswhchan@users.noreply.github.com>
Mon, 26 Mar 2018 00:20:24 +0000 (17:20 -0700)
committerGitHub <noreply@github.com>
Mon, 26 Mar 2018 00:20:24 +0000 (17:20 -0700)
Add missing import for AsyncHTTPClient for Future example

docs/guide/async.rst

index 60f8a23b34a77151829a2613c9dd031b751ab651..fb350d94206fd07577fc5ad56b9ff6eab2ecf6c2 100644 (file)
@@ -91,6 +91,7 @@ And again with a `.Future` instead of a callback:
 .. testcode::
 
     from tornado.concurrent import Future
+    from tornado.httpclient import AsyncHTTPClient
 
     def async_fetch_future(url):
         http_client = AsyncHTTPClient()