Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
Migrate gevent's wsgi to pywsgi (#1272)
Browse files Browse the repository at this point in the history
Since gevent 1.0a1 was released in 2011, wsgi is just an alias for pywsgi.
In version 1.3 wsgi is completely removed, causing allennlp to break.
For more info check  http://www.gevent.org/api/gevent.wsgi.html

Test plan:
run scripts/verify.py on trunk, all test pass.
  • Loading branch information
mantili authored and joelgrus committed May 24, 2018
1 parent 6b5b017 commit b4c9fe4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion allennlp/service/server_flask.py
Expand Up @@ -16,7 +16,7 @@

from flask import Flask, request, Response, jsonify, send_file, send_from_directory
from flask_cors import CORS
from gevent.wsgi import WSGIServer
from gevent.pywsgi import WSGIServer

import psycopg2

Expand Down
2 changes: 1 addition & 1 deletion allennlp/service/server_simple.py
Expand Up @@ -25,7 +25,7 @@

from flask import Flask, request, Response, jsonify, send_file, send_from_directory
from flask_cors import CORS
from gevent.wsgi import WSGIServer
from gevent.pywsgi import WSGIServer

from allennlp.common import JsonDict
from allennlp.common.util import import_submodules
Expand Down

0 comments on commit b4c9fe4

Please sign in to comment.