Debian Codegraph @

src/websockets/auth.py

raw
1 from __future__ import annotations
2
3 import warnings
4
5
6 with warnings.catch_warnings():
7 # Suppress redundant DeprecationWarning raised by websockets.legacy.
8 warnings.filterwarnings("ignore", category=DeprecationWarning)
9 from .legacy.auth import *
10 from .legacy.auth import __all__ # noqa: F401
11
12
13 warnings.warn( # deprecated in 14.0 - 2024-11-09
14 "websockets.auth, an alias for websockets.legacy.auth, is deprecated; "
15 "see https://websockets.readthedocs.io/en/stable/howto/upgrade.html "
16 "for upgrade instructions",
17 DeprecationWarning,
18 )