src/websockets/connection.py
raw| 1 | from __future__ import annotations |
| 2 | |
| 3 | import warnings |
| 4 | |
| 5 | from .protocol import SEND_EOF, Protocol as Connection, Side, State # noqa: F401 |
| 6 | |
| 7 | |
| 8 | warnings.warn( # deprecated in 11.0 - 2023-04-02 |
| 9 | "websockets.connection was renamed to websockets.protocol " |
| 10 | "and Connection was renamed to Protocol", |
| 11 | DeprecationWarning, |
| 12 | ) |