Sindbad~EG File Manager

Current Path : /opt/imh-python/lib/python3.9/site-packages/uvicorn/protocols/websockets/
Upload File :
Current File : //opt/imh-python/lib/python3.9/site-packages/uvicorn/protocols/websockets/auto.py

from __future__ import annotations

import asyncio
import typing

AutoWebSocketsProtocol: typing.Callable[..., asyncio.Protocol] | None
try:
    import websockets  # noqa
except ImportError:  # pragma: no cover
    try:
        import wsproto  # noqa
    except ImportError:
        AutoWebSocketsProtocol = None
    else:
        from uvicorn.protocols.websockets.wsproto_impl import WSProtocol

        AutoWebSocketsProtocol = WSProtocol
else:
    from uvicorn.protocols.websockets.websockets_impl import WebSocketProtocol

    AutoWebSocketsProtocol = WebSocketProtocol

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists