mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-02-14 20:48:16 +01:00
Apply for legacy framing too for safe measure
This commit is contained in:
parent
c2718e7ff5
commit
6dcc99ee4a
1 changed files with 5 additions and 3 deletions
|
@ -47,9 +47,11 @@ if urllib3_version and urllib3_version >= (1, 26, 17):
|
||||||
|
|
||||||
# Disable apply_mask C implementation
|
# Disable apply_mask C implementation
|
||||||
# Seems to help reduce "Fatal Python error: Aborted" in CI
|
# Seems to help reduce "Fatal Python error: Aborted" in CI
|
||||||
import websockets.frames
|
with contextlib.suppress(Exception):
|
||||||
import websockets.utils
|
import websockets.frames
|
||||||
websockets.frames.apply_mask = websockets.utils.apply_mask
|
import websockets.legacy.framing
|
||||||
|
import websockets.utils
|
||||||
|
websockets.frames.apply_mask = websockets.legacy.framing = websockets.utils.apply_mask
|
||||||
|
|
||||||
import websockets.sync.client
|
import websockets.sync.client
|
||||||
from websockets.uri import parse_uri
|
from websockets.uri import parse_uri
|
||||||
|
|
Loading…
Add table
Reference in a new issue