Commit b5cdbf9d authored by Denis Bilenko's avatar Denis Bilenko

examples/wsgiserver.py: use pywsgi

parent ca3c8aba
#!/usr/bin/python
"""WSGI server example"""
from gevent import wsgi
from gevent.pywsgi import WSGIServer
def hello_world(env, start_response):
......@@ -13,4 +13,4 @@ def hello_world(env, start_response):
return ['<h1>Not Found</h1>']
print 'Serving on 8088...'
wsgi.WSGIServer(('', 8088), hello_world).serve_forever()
WSGIServer(('', 8088), hello_world).serve_forever()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment