diff --git a/cherrypy/_cpwsgi_server.py b/cherrypy/_cpwsgi_server.py index 72b8a8b79..a415164a7 100644 --- a/cherrypy/_cpwsgi_server.py +++ b/cherrypy/_cpwsgi_server.py @@ -4,14 +4,15 @@ """ import sys +import cheroot.wsgi import cheroot.server import cherrypy -class CPWSGIServer(cheroot.server.WSGIServer): +class CPWSGIServer(cheroot.wsgi.WSGIServer): - """Wrapper for cheroot.server.WSGIServer. + """Wrapper for cheroot.wsgi.WSGIServer. cheroot has been designed to not reference CherryPy in any way, so that it can be used in other frameworks and applications. Therefore, @@ -33,7 +34,7 @@ def __init__(self, server_adapter=cherrypy.server): None) self.wsgi_version = self.server_adapter.wsgi_version - s = cheroot.server.WSGIServer + s = cheroot.wsgi.WSGIServer s.__init__(self, server_adapter.bind_addr, cherrypy.tree, self.server_adapter.thread_pool, server_name,