diff options
author | morpheus65535 <[email protected]> | 2022-01-23 23:07:52 -0500 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2022-01-23 23:07:52 -0500 |
commit | 0c3c5a02a75bc61b6bf6e303de20e11741d2afac (patch) | |
tree | 30ae1d524ffe5d54172b7a4a8445d90c3461e659 /libs/engineio | |
parent | 36bf0d219d0432c20e6314e0ce752b36f4d88e3c (diff) | |
download | bazarr-0c3c5a02a75bc61b6bf6e303de20e11741d2afac.tar.gz bazarr-0c3c5a02a75bc61b6bf6e303de20e11741d2afac.zip |
Upgraded vendored Python dependencies to the latest versions and removed the unused dependencies.v1.0.3-beta.16
Diffstat (limited to 'libs/engineio')
-rw-r--r-- | libs/engineio/__init__.py | 4 | ||||
-rw-r--r-- | libs/engineio/async_drivers/sanic.py | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/libs/engineio/__init__.py b/libs/engineio/__init__.py index b87baf0c0..a4c21bb66 100644 --- a/libs/engineio/__init__.py +++ b/libs/engineio/__init__.py @@ -17,9 +17,7 @@ else: # pragma: no cover get_tornado_handler = None ASGIApp = None -__version__ = '4.2.1dev' - -__all__ = ['__version__', 'Server', 'WSGIApp', 'Middleware', 'Client'] +__all__ = ['Server', 'WSGIApp', 'Middleware', 'Client'] if AsyncServer is not None: # pragma: no cover __all__ += ['AsyncServer', 'ASGIApp', 'get_tornado_handler', 'AsyncClient'], diff --git a/libs/engineio/async_drivers/sanic.py b/libs/engineio/async_drivers/sanic.py index e9555f310..88b3e5ffb 100644 --- a/libs/engineio/async_drivers/sanic.py +++ b/libs/engineio/async_drivers/sanic.py @@ -3,7 +3,11 @@ from urllib.parse import urlsplit try: # pragma: no cover from sanic.response import HTTPResponse - from sanic.websocket import WebSocketProtocol + try: + from sanic.server.protocols.websocket_protocol import WebSocketProtocol + except ImportError: + print('yay') + from sanic.websocket import WebSocketProtocol except ImportError: HTTPResponse = None WebSocketProtocol = None |