mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-27 01:57:33 +00:00
12 lines
357 B
Python
12 lines
357 B
Python
|
import sys
|
||
|
if sys.version_info >= (3, 5):
|
||
|
try:
|
||
|
from engineio.async_drivers.tornado import get_tornado_handler as \
|
||
|
get_engineio_handler
|
||
|
except ImportError: # pragma: no cover
|
||
|
get_engineio_handler = None
|
||
|
|
||
|
|
||
|
def get_tornado_handler(socketio_server): # pragma: no cover
|
||
|
return get_engineio_handler(socketio_server.eio)
|