]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Fix typo (#1386)
authorKyungmin Lee <rekyungmin@gmail.com>
Sun, 8 Nov 2020 09:28:38 +0000 (18:28 +0900)
committerGitHub <noreply@github.com>
Sun, 8 Nov 2020 09:28:38 +0000 (10:28 +0100)
* Fix typo

three greater-than signs -> three dots

* Fix typo

three greater-than signs -> three dots

* Fix typo

three greater-than signs -> three dots

README.md
docs/async.md
docs/index.md

index 6f674feb1088b9d43274163fe958731f7077b34e..9b818630c0a411900b2f24ac43776fa8652764b9 100644 (file)
--- a/README.md
+++ b/README.md
@@ -43,7 +43,8 @@ _Use [IPython](https://ipython.readthedocs.io/en/stable/) or Python 3.8+ with `p
 ```pycon
 >>> import httpx
 >>> async with httpx.AsyncClient() as client:
->>>     r = await client.get('https://www.example.org/')
+...     r = await client.get('https://www.example.org/')
+...
 >>> r
 <Response [200 OK]>
 ```
index ba6c6ad70468830b1cf4db1b849d9e0a18108c8d..1cd51b00f14383225b8ba227e00383d38374080b 100644 (file)
@@ -16,7 +16,8 @@ To make asynchronous requests, you'll need an `AsyncClient`.
 
 ```pycon
 >>> async with httpx.AsyncClient() as client:
->>>     r = await client.get('https://www.example.com/')
+...     r = await client.get('https://www.example.com/')
+...
 >>> r
 <Response [200 OK]>
 ```
@@ -67,8 +68,8 @@ The `AsyncClient.stream(method, url, ...)` method is an async context block.
 ```pycon
 >>> client = httpx.AsyncClient()
 >>> async with client.stream('GET', 'https://www.example.com/') as response:
->>>     async for chunk in response.aiter_bytes():
->>>         ...
+...     async for chunk in response.aiter_bytes():
+...         ...
 ```
 
 The async response streaming methods are:
index 1fee60618486c095185939e8ffe9faf7dd2d8dc1..e76b31a89be16c42663920fe55243953899921ee 100644 (file)
@@ -55,7 +55,8 @@ _Use [IPython](https://ipython.readthedocs.io/en/stable/) or Python 3.8+ with `p
 ```pycon
 >>> import httpx
 >>> async with httpx.AsyncClient() as client:
->>>     r = await client.get('https://www.example.org/')
+...     r = await client.get('https://www.example.org/')
+...
 >>> r
 <Response [200 OK]>
 ```