[FIX] service: do not break on gevent 1.3

gevent 1.3.0 removed backward compatibility on gevent.wsgi.
make the new path the default

While the recommanded version on requirements.txt is 1.1, a server can not
launched with the 1.3

Closes #24780
Fixes #24779
This commit is contained in:
Rod Schouteden
2018-06-11 10:42:09 +02:00
committed by Martin Trigaux
parent 84ce2ead86
commit 5c03430d9f
+4 -1
View File
@@ -356,7 +356,10 @@ class GeventServer(CommonServer):
def start(self):
import gevent
from gevent.wsgi import WSGIServer
try:
from gevent.pywsgi import WSGIServer
except ImportError:
from gevent.wsgi import WSGIServer
if os.name == 'posix':