From eecd3676c15bb7c4c0e165eb02c814cba53a6bb4 Mon Sep 17 00:00:00 2001 From: Miguel Grinberg Date: Sat, 29 Jun 2019 12:45:16 +0100 Subject: [PATCH] correctly autodetect asgi async mode --- socketio/tornado.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/socketio/tornado.py b/socketio/tornado.py index adfa6a4..5b2e6f6 100644 --- a/socketio/tornado.py +++ b/socketio/tornado.py @@ -4,8 +4,7 @@ if sys.version_info >= (3, 5): from engineio.async_drivers.tornado import get_tornado_handler as \ get_engineio_handler except ImportError: # pragma: no cover - from engineio.async_tornado import get_tornado_handler as \ - get_engineio_handler + get_engineio_handler = None def get_tornado_handler(socketio_server): # pragma: no cover