1import sys 2if sys.version_info >= (3, 5): 3 try: 4 from engineio.async_drivers.tornado import get_tornado_handler as \ 5 get_engineio_handler 6 except ImportError: # pragma: no cover 7 get_engineio_handler = None 8 9 10def get_tornado_handler(socketio_server): # pragma: no cover 11 return get_engineio_handler(socketio_server.eio) 12