summaryrefslogtreecommitdiff
path: root/venv/lib/python3.11/site-packages/websockets/connection.py
diff options
context:
space:
mode:
Diffstat (limited to 'venv/lib/python3.11/site-packages/websockets/connection.py')
-rw-r--r--venv/lib/python3.11/site-packages/websockets/connection.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/venv/lib/python3.11/site-packages/websockets/connection.py b/venv/lib/python3.11/site-packages/websockets/connection.py
new file mode 100644
index 0000000..88bcda1
--- /dev/null
+++ b/venv/lib/python3.11/site-packages/websockets/connection.py
@@ -0,0 +1,13 @@
+from __future__ import annotations
+
+import warnings
+
+# lazy_import doesn't support this use case.
+from .protocol import SEND_EOF, Protocol as Connection, Side, State # noqa: F401
+
+
+warnings.warn(
+ "websockets.connection was renamed to websockets.protocol "
+ "and Connection was renamed to Protocol",
+ DeprecationWarning,
+)