mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
gthreads: only check requirements for python < 3.4
This commit is contained in:
parent
abac771c44
commit
ff6169cc20
@ -11,7 +11,6 @@
|
|||||||
# closed.
|
# closed.
|
||||||
|
|
||||||
from collections import deque
|
from collections import deque
|
||||||
import concurrent.futures as futures
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
import errno
|
import errno
|
||||||
from functools import partial
|
from functools import partial
|
||||||
@ -28,10 +27,25 @@ from .. import util
|
|||||||
from . import base
|
from . import base
|
||||||
from .. import six
|
from .. import six
|
||||||
|
|
||||||
|
|
||||||
|
try:
|
||||||
|
import concurrent.futures as futures
|
||||||
|
except ImportError:
|
||||||
|
raise RuntimeError("""
|
||||||
|
You need 'concurrent' installed to use this worker with this python
|
||||||
|
version.
|
||||||
|
""")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from asyncio import selectors
|
from asyncio import selectors
|
||||||
except ImportError:
|
except ImportError:
|
||||||
from trollius import selectors
|
try:
|
||||||
|
from trollius import selectors
|
||||||
|
except ImportError:
|
||||||
|
raise RuntimeError("""
|
||||||
|
You need 'trollius' installed to use this worker with this python
|
||||||
|
version.
|
||||||
|
""")
|
||||||
|
|
||||||
|
|
||||||
class TConn():
|
class TConn():
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user