mirror of https://github.com/yt-dlp/yt-dlp
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
663 B
Python
32 lines
663 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())
|
|
|