diff --git a/src/websockets/__main__.py b/src/websockets/__main__.py index f2ea5cf4e..8647481d0 100644 --- a/src/websockets/__main__.py +++ b/src/websockets/__main__.py @@ -22,7 +22,7 @@ def win_enable_vt100() -> None: """ Enable VT-100 for console output on Windows. - See also https://bugs.python.org/issue29059. + See also https://github.com/python/cpython/issues/73245. """ import ctypes diff --git a/src/websockets/legacy/protocol.py b/src/websockets/legacy/protocol.py index de9ea59b6..57cb4e770 100644 --- a/src/websockets/legacy/protocol.py +++ b/src/websockets/legacy/protocol.py @@ -1175,9 +1175,9 @@ def write_frame_sync(self, fin: bool, opcode: int, data: bytes) -> None: async def drain(self) -> None: try: - # drain() cannot be called concurrently by multiple coroutines: - # http://bugs.python.org/issue29930. Remove this lock when no - # version of Python where this bugs exists is supported anymore. + # drain() cannot be called concurrently by multiple coroutines. + # See https://github.com/python/cpython/issues/74116 for details. + # This workaround can be removed when dropping Python < 3.10. async with self._drain_lock: # Handle flow control automatically. await self._drain() diff --git a/src/websockets/legacy/server.py b/src/websockets/legacy/server.py index 39464be6c..f4442fecc 100644 --- a/src/websockets/legacy/server.py +++ b/src/websockets/legacy/server.py @@ -764,7 +764,8 @@ async def _close(self, close_connections: bool) -> None: self.server.close() # Wait until all accepted connections reach connection_made() and call - # register(). See https://bugs.python.org/issue34852 for details. + # register(). See https://github.com/python/cpython/issues/79033 for + # details. This workaround can be removed when dropping Python < 3.11. await asyncio.sleep(0) if close_connections: