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