From 32c9036ac5eee02e5167f93474b22e9cddbc78bd Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sat, 21 Nov 2020 18:33:03 +0100 Subject: [PATCH] Mask expected deprecation warning. --- src/websockets/protocol.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/websockets/protocol.py b/src/websockets/protocol.py index 39b578aba..677d50f2c 100644 --- a/src/websockets/protocol.py +++ b/src/websockets/protocol.py @@ -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