Skip to content

Commit

Permalink
Drop wsproto version checking (encode#1359)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchristie authored and Kludex committed Oct 29, 2022
1 parent 6a49777 commit a9dfbae
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions uvicorn/protocols/websockets/wsproto_impl.py
Expand Up @@ -4,7 +4,6 @@

import h11
import wsproto
from packaging import version
from wsproto import ConnectionType, events
from wsproto.connection import ConnectionState
from wsproto.extensions import PerMessageDeflate
Expand All @@ -13,10 +12,6 @@
from uvicorn.logging import TRACE_LOG_LEVEL
from uvicorn.protocols.utils import get_local_addr, get_remote_addr, is_ssl

assert version.parse(wsproto.__version__) >= version.parse(
"0.13"
), "Uvicorn requires wsproto version 0.13 or higher"


class WSProtocol(asyncio.Protocol):
def __init__(self, config, server_state, _loop=None):
Expand Down

0 comments on commit a9dfbae

Please sign in to comment.