Skip to content

Commit 7bb18a6

Browse files
committed
Update references to Python's bug tracker.
1 parent 14cca76 commit 7bb18a6

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/websockets/__main__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def win_enable_vt100() -> None:
2222
"""
2323
Enable VT-100 for console output on Windows.
2424
25-
See also https://bugs.python.org/issue29059.
25+
See also https://github.com/python/cpython/issues/73245.
2626
2727
"""
2828
import ctypes

src/websockets/legacy/protocol.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1175,9 +1175,9 @@ def write_frame_sync(self, fin: bool, opcode: int, data: bytes) -> None:
11751175

11761176
async def drain(self) -> None:
11771177
try:
1178-
# drain() cannot be called concurrently by multiple coroutines:
1179-
# http://bugs.python.org/issue29930. Remove this lock when no
1180-
# version of Python where this bugs exists is supported anymore.
1178+
# drain() cannot be called concurrently by multiple coroutines.
1179+
# See https://github.com/python/cpython/issues/74116 for details.
1180+
# This workaround can be removed when dropping Python < 3.10.
11811181
async with self._drain_lock:
11821182
# Handle flow control automatically.
11831183
await self._drain()

src/websockets/legacy/server.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,8 @@ async def _close(self, close_connections: bool) -> None:
764764
self.server.close()
765765

766766
# Wait until all accepted connections reach connection_made() and call
767-
# register(). See https://bugs.python.org/issue34852 for details.
767+
# register(). See https://github.com/python/cpython/issues/79033 for
768+
# details. This workaround can be removed when dropping Python < 3.11.
768769
await asyncio.sleep(0)
769770

770771
if close_connections:

0 commit comments

Comments
 (0)