Skip to content

Commit

Permalink
Mask expected deprecation warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaugustin committed Nov 21, 2020
1 parent 867a00e commit 32c9036
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/websockets/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,14 @@
prepare_data,
serialize_close,
)
from .framing import Frame


with warnings.catch_warnings():
warnings.filterwarnings(
"ignore", "websockets.framing is deprecated", DeprecationWarning
)
from .framing import Frame

from .typing import Data, Subprotocol


Expand Down

0 comments on commit 32c9036

Please sign in to comment.