don't monkeypatch if uwsgi is available
This commit is contained in:
parent
616ec57de2
commit
ac8d987392
@ -30,6 +30,9 @@ from __future__ import print_function
|
|||||||
import pkg_resources
|
import pkg_resources
|
||||||
dist = pkg_resources.get_distribution("isso")
|
dist = pkg_resources.get_distribution("isso")
|
||||||
|
|
||||||
|
try:
|
||||||
|
import uwsgi
|
||||||
|
except ImportError:
|
||||||
try:
|
try:
|
||||||
import gevent.monkey; gevent.monkey.patch_all()
|
import gevent.monkey; gevent.monkey.patch_all()
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
Loading…
Reference in New Issue
Block a user