Skip to content

Commit e217458

Browse files
committed
Small cleanups in legacy implementation.
1 parent 50b6d20 commit e217458

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/websockets/legacy/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class WebSocketClientProtocol(WebSocketCommonProtocol):
6060
:class:`WebSocketClientProtocol` provides :meth:`recv` and :meth:`send`
6161
coroutines for receiving and sending messages.
6262
63-
It supports asynchronous iteration to receive incoming messages::
63+
It supports asynchronous iteration to receive messages::
6464
6565
async for message in websocket:
6666
await process(message)

src/websockets/legacy/server.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -649,9 +649,7 @@ class WebSocketServer:
649649
"""
650650
WebSocket server returned by :func:`serve`.
651651
652-
This class provides the same interface as :class:`~asyncio.Server`,
653-
notably the :meth:`~asyncio.Server.close`
654-
and :meth:`~asyncio.Server.wait_closed` methods.
652+
This class mirrors the API of :class:`~asyncio.Server`.
655653
656654
It keeps track of WebSocket connections in order to close them properly
657655
when shutting down.

0 commit comments

Comments
 (0)