don't monkeypatch if uwsgi is available

This commit is contained in:
Martin Zimmermann 2013-11-06 18:10:09 +01:00
parent 616ec57de2
commit ac8d987392

View File

@ -31,8 +31,11 @@ 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:
try:
import gevent.monkey; gevent.monkey.patch_all()
except ImportError:
pass pass
import sys import sys