Skip to content

Commit

Permalink
Drop last mentions of with ClientSession()
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Sep 10, 2016
1 parent 53df0df commit 34c3647
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ If your system has several IP interfaces you may choose one which will
be used used to bind socket locally::

conn = aiohttp.TCPConnector(local_addr=('127.0.0.1, 0), loop=loop)
with aiohttp.ClientSession(connector=conn) as session:
async with aiohttp.ClientSession(connector=conn) as session:
...

.. seealso:: :class:`aiohttp.TCPConnector` and ``local_addr`` parameter.
Expand Down
2 changes: 1 addition & 1 deletion examples/curl.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def curl(url):
print('Downloaded: %s' % len(chunk))

response.close()
session.close()
yield from session.close()


if __name__ == '__main__':
Expand Down

0 comments on commit 34c3647

Please sign in to comment.