diff --git a/src/websockets/asyncio/messages.py b/src/websockets/asyncio/messages.py index c68e5d96..2cb0ec4e 100644 --- a/src/websockets/asyncio/messages.py +++ b/src/websockets/asyncio/messages.py @@ -113,7 +113,7 @@ def __init__( # pragma: no cover # This flag prevents concurrent calls to get() by user code. self.get_in_progress = False - # This flag marks a soon cancellation + # This flag marks a soon cancellation. self.cancelling = False # This flag marks the end of the connection. diff --git a/src/websockets/sync/messages.py b/src/websockets/sync/messages.py index 98490797..7d21a4fa 100644 --- a/src/websockets/sync/messages.py +++ b/src/websockets/sync/messages.py @@ -291,7 +291,7 @@ def close(self) -> None: """ End the stream of frames. - Callling :meth:`close` concurrently with :meth:`get`, :meth:`get_iter`, + Calling :meth:`close` concurrently with :meth:`get`, :meth:`get_iter`, or :meth:`put` is safe. They will raise :exc:`EOFError`. """