aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/downloader/websocket.py
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp/downloader/websocket.py')
-rw-r--r--yt_dlp/downloader/websocket.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/yt_dlp/downloader/websocket.py b/yt_dlp/downloader/websocket.py
index 8465f9713..eb1b99b45 100644
--- a/yt_dlp/downloader/websocket.py
+++ b/yt_dlp/downloader/websocket.py
@@ -3,18 +3,10 @@ import os
import signal
import threading
-try:
- import websockets
-except (ImportError, SyntaxError):
- # websockets 3.10 on python 3.6 causes SyntaxError
- # See https://github.com/yt-dlp/yt-dlp/issues/2633
- has_websockets = False
-else:
- has_websockets = True
-
from .common import FileDownloader
from .external import FFmpegFD
from ..compat import asyncio
+from ..dependencies import websockets
class FFmpegSinkFD(FileDownloader):