Browse Source

correctly autodetect asgi async mode

pull/319/head
Miguel Grinberg 6 years ago
parent
commit
eecd3676c1
No known key found for this signature in database GPG Key ID: 36848B262DF5F06C
  1. 3
      socketio/tornado.py

3
socketio/tornado.py

@ -4,8 +4,7 @@ if sys.version_info >= (3, 5):
from engineio.async_drivers.tornado import get_tornado_handler as \ from engineio.async_drivers.tornado import get_tornado_handler as \
get_engineio_handler get_engineio_handler
except ImportError: # pragma: no cover except ImportError: # pragma: no cover
from engineio.async_tornado import get_tornado_handler as \ get_engineio_handler = None
get_engineio_handler
def get_tornado_handler(socketio_server): # pragma: no cover def get_tornado_handler(socketio_server): # pragma: no cover

Loading…
Cancel
Save