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:
|
||||
from asyncio import selectors
|
||||
except ImportError:
|
||||
try:
|
||||
from trollius import selectors
|
||||
except ImportError:
|
||||
raise RuntimeError("""
|
||||
You need 'trollius' installed to use this worker with this python
|
||||
version.
|
||||
""")
|
||||
from gunicorn import selectors
|
||||
|
||||
|
||||
class TConn(object):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user