Skip to content

Commit

Permalink
Revert "Declare __await__ as coroutine."
Browse files Browse the repository at this point in the history
This reverts commit 7da5f40.

Fix #411.
  • Loading branch information
aaugustin committed May 24, 2018
1 parent c08a318 commit 5b991fb
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ Changelog

Also:

* Added compatibility with Python 3.7.

* :func:`~client.connect()` performs HTTP Basic Auth when the URI contains
credentials.

Expand Down Expand Up @@ -139,8 +137,6 @@ Also:
3.3
...

* Ensured compatibility with Python 3.6.

* Reduced noise in logs caused by connection resets.

* Avoided crashing on concurrent writes on slow connections.
Expand Down
1 change: 0 additions & 1 deletion websockets/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,6 @@ def __aenter__(self):
def __aexit__(self, exc_type, exc_value, traceback):
yield from self.ws_client.close()

@asyncio.coroutine
def __await__(self):
transport, protocol = yield from self._creating_connection

Expand Down
1 change: 0 additions & 1 deletion websockets/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,6 @@ def __aexit__(self, exc_type, exc_value, traceback):
self.ws_server.close()
yield from self.ws_server.wait_closed()

@asyncio.coroutine
def __await__(self):
server = yield from self._creating_server
self.ws_server.wrap(server)
Expand Down

0 comments on commit 5b991fb

Please sign in to comment.