mirror of
https://github.com/yt-dlp/yt-dlp
synced 2024-12-26 21:59:08 +01:00
f9fb3ce86e
Authored by: bashonly, pukkandan, seproDev, Grub4K Co-authored-by: bashonly <bashonly@protonmail.com> Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com> Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
30 lines
662 B
Python
30 lines
662 B
Python
# flake8: noqa: F401
|
|
import warnings
|
|
|
|
from .common import (
|
|
HEADRequest,
|
|
PUTRequest,
|
|
Request,
|
|
RequestDirector,
|
|
RequestHandler,
|
|
Response,
|
|
)
|
|
|
|
# isort: split
|
|
# TODO: all request handlers should be safely imported
|
|
from . import _urllib
|
|
from ..utils import bug_reports_message
|
|
|
|
try:
|
|
from . import _requests
|
|
except ImportError:
|
|
pass
|
|
except Exception as e:
|
|
warnings.warn(f'Failed to import "requests" request handler: {e}' + bug_reports_message())
|
|
|
|
try:
|
|
from . import _websockets
|
|
except ImportError:
|
|
pass
|
|
except Exception as e:
|
|
warnings.warn(f'Failed to import "websockets" request handler: {e}' + bug_reports_message())
|