Skip to content

Commit

Permalink
Fixed deprecated import from gevent
Browse files Browse the repository at this point in the history
Changed `import gevent.wsgi` to `import gevent.pywsgi` as the former was deprecated and has been removed as of gevent v1.3.0.
  • Loading branch information
ivirshup committed May 28, 2018
1 parent 43c9336 commit 2ea8236
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/loom_viewer/loom_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

import gevent.monkey
import gevent.socket
import gevent.wsgi
import gevent.pywsgi

from .loom_datasets import LoomDatasets

Expand Down Expand Up @@ -319,7 +319,7 @@ def start_server(dataset_path: str=None, show_browser: bool=True, port: int=8003
# Monkey-patch if this has not happened yet
if socket.socket is not gevent.socket.socket:
gevent.monkey.patch_all()
http_server = gevent.wsgi.WSGIServer(('', port), loom_server.app)
http_server = gevent.pywsgi.WSGIServer(('', port), loom_server.app)

http_server.serve_forever()
except socket.error as serr:
Expand Down

0 comments on commit 2ea8236

Please sign in to comment.