Skip to content

Commit 5f34e27

Browse files
committed
Fix remaining instances of shortcut imports.
1 parent 9b3595d commit 5f34e27

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/topics/broadcast.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ to::
8383

8484
Here's a coroutine that broadcasts a message to all clients::
8585

86-
from websockets import ConnectionClosed
86+
from websockets.exceptions import ConnectionClosed
8787

8888
async def broadcast(message):
8989
for websocket in CLIENTS.copy():

docs/topics/keepalive.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ You can run a task in the background to send keepalive messages:
112112
import itertools
113113
import json
114114
115-
from websockets import ConnectionClosed
115+
from websockets.exceptions import ConnectionClosed
116116
117117
async def keepalive(websocket, ping_interval=30):
118118
for ping in itertools.count():

experiments/broadcast/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
import sys
77
import time
88

9-
from websockets import ConnectionClosed
109
from websockets.asyncio.server import broadcast, serve
10+
from websockets.exceptions import ConnectionClosed
1111

1212

1313
CLIENTS = set()

0 commit comments

Comments
 (0)