Commit ca3c8aba authored by Denis Bilenko's avatar Denis Bilenko

examples/webproxy.py: use pywsgi

parent d4314b31
...@@ -11,7 +11,6 @@ To start the server on some other interface/port, use ...@@ -11,7 +11,6 @@ To start the server on some other interface/port, use
""" """
from gevent import monkey; monkey.patch_all() from gevent import monkey; monkey.patch_all()
from gevent import wsgi
import sys import sys
import re import re
import traceback import traceback
...@@ -122,5 +121,6 @@ FORM = """<html><head> ...@@ -122,5 +121,6 @@ FORM = """<html><head>
""" """
if __name__ == '__main__': if __name__ == '__main__':
from gevent.pywsgi import WSGIServer
print 'Serving on %s...' % PORT print 'Serving on %s...' % PORT
wsgi.WSGIServer(('', PORT), application).serve_forever() WSGIServer(('', PORT), application).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