2023-09-23 14:00:31 -06:00
|
|
|
# flake8: noqa: F401
|
2023-10-13 17:33:00 -06:00
|
|
|
import warnings
|
|
|
|
|
2023-07-15 04:25:23 -06:00
|
|
|
from .common import (
|
|
|
|
HEADRequest,
|
|
|
|
PUTRequest,
|
|
|
|
Request,
|
|
|
|
RequestDirector,
|
|
|
|
RequestHandler,
|
|
|
|
Response,
|
|
|
|
)
|
|
|
|
|
|
|
|
# isort: split
|
|
|
|
# TODO: all request handlers should be safely imported
|
|
|
|
from . import _urllib
|
2023-10-13 17:33:00 -06:00
|
|
|
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())
|