Skip to content

Commit

Permalink
Replace yield from with await in docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Nov 7, 2017
1 parent c15b8b1 commit 89a4cf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aiohttp/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,10 +779,10 @@ def request(method, url, *,
loop - Optional event loop.
Usage::
>>> import aiohttp
>>> resp = yield from aiohttp.request('GET', 'http://python.org/')
>>> resp = await aiohttp.request('GET', 'http://python.org/')
>>> resp
<ClientResponse(python.org/) [200]>
>>> data = yield from resp.read()
>>> data = await resp.read()
"""
connector_owner = False
if connector is None:
Expand Down

0 comments on commit 89a4cf2

Please sign in to comment.