Skip to content

Commit ba1ce05

Browse files
committed
Lighten wording in docstrings.
1 parent 44607df commit ba1ce05

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/websockets/asyncio/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class ClientConnection(Connection):
5050
async for message in websocket:
5151
await process(message)
5252
53-
The iterator exits normally when the connection is closed with close code
53+
The iterator exits normally when the connection is closed with code
5454
1000 (OK) or 1001 (going away) or without a close code. It raises a
5555
:exc:`~websockets.exceptions.ConnectionClosedError` when the connection is
5656
closed with any other code.

src/websockets/asyncio/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class ServerConnection(Connection):
5050
async for message in websocket:
5151
await process(message)
5252
53-
The iterator exits normally when the connection is closed with close code
53+
The iterator exits normally when the connection is closed with code
5454
1000 (OK) or 1001 (going away) or without a close code. It raises a
5555
:exc:`~websockets.exceptions.ConnectionClosedError` when the connection is
5656
closed with any other code.

src/websockets/sync/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class ClientConnection(Connection):
3737
for message in websocket:
3838
process(message)
3939
40-
The iterator exits normally when the connection is closed with close code
40+
The iterator exits normally when the connection is closed with code
4141
1000 (OK) or 1001 (going away) or without a close code. It raises a
4242
:exc:`~websockets.exceptions.ConnectionClosedError` when the connection is
4343
closed with any other code.

src/websockets/sync/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class ServerConnection(Connection):
4747
for message in websocket:
4848
process(message)
4949
50-
The iterator exits normally when the connection is closed with close code
50+
The iterator exits normally when the connection is closed with code
5151
1000 (OK) or 1001 (going away) or without a close code. It raises a
5252
:exc:`~websockets.exceptions.ConnectionClosedError` when the connection is
5353
closed with any other code.

0 commit comments

Comments
 (0)