]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Drop erronous references to AsyncClient (#559)
authorTom Christie <tom@tomchristie.com>
Thu, 28 Nov 2019 12:33:53 +0000 (12:33 +0000)
committerGitHub <noreply@github.com>
Thu, 28 Nov 2019 12:33:53 +0000 (12:33 +0000)
docs/advanced.md

index 5b891841e2ec10436079f3f98ba4cb0ac0aa444c..7f1fc524afe7b19047b1d30708d9ebb13d11bd7b 100644 (file)
@@ -423,11 +423,11 @@ Response <200 OK>
 
 ### [asyncio](https://docs.python.org/3/library/asyncio.html) (Default)
 
-By default, `AsyncClient` uses `asyncio` to perform asynchronous operations and I/O calls.
+By default, `Client` uses `asyncio` to perform asynchronous operations and I/O calls.
 
 ### [trio](https://github.com/python-trio/trio)
 
-To make asynchronous requests in `trio` programs, pass a `TrioBackend` to the `AsyncClient`:
+To make asynchronous requests in `trio` programs, pass a `TrioBackend` to the `Client`:
 
 ```python
 import trio
@@ -435,7 +435,7 @@ import httpx
 from httpx.concurrency.trio import TrioBackend
 
 async def main():
-    async with httpx.AsyncClient(backend=TrioBackend()) as client:
+    async with httpx.Client(backend=TrioBackend()) as client:
         ...
 
 trio.run(main)