Skip to content

Commit

Permalink
fixup async/await example after module rename python-trio#168 python-…
Browse files Browse the repository at this point in the history
  • Loading branch information
shuckc committed Jul 16, 2020
1 parent 6961783 commit bf64a3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ It also supports async/await:

.. code-block:: python
import hip
import ahip
import trio
async def main():
with hip.AsyncPoolManager() as http:
with ahip.PoolManager() as http:
r = await http.request("GET", "http://httpbin.org/uuid")
print("Status:", r.status) # 200
print("Data:", await r.read()). # 'User-agent: *\nDisallow: /deny\n'
print("Data:", r.data) # 'User-agent: *\nDisallow: /deny\n'
trio.run(main)
Expand Down

0 comments on commit bf64a3d

Please sign in to comment.