mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
uses gunicorn.selectors when python < 3.4
This commit is contained in:
parent
02ca92d30a
commit
048dcf410c
@ -39,13 +39,7 @@ except ImportError:
|
|||||||
try:
|
try:
|
||||||
from asyncio import selectors
|
from asyncio import selectors
|
||||||
except ImportError:
|
except ImportError:
|
||||||
try:
|
from gunicorn import selectors
|
||||||
from trollius import selectors
|
|
||||||
except ImportError:
|
|
||||||
raise RuntimeError("""
|
|
||||||
You need 'trollius' installed to use this worker with this python
|
|
||||||
version.
|
|
||||||
""")
|
|
||||||
|
|
||||||
|
|
||||||
class TConn(object):
|
class TConn(object):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user