Make cherrypy._cpserver PEP257-compliant
@@ -8,11 +8,10 @@ from cherrypy._cpcompat import text_or_bytes
from cherrypy.process.servers import ServerAdapter
-__all__ = ['Server']
+__all__ = ('Server', )
class Server(ServerAdapter):
-
"""An adapter for an HTTP server.
You can set attributes (like socket_host and socket_port)
@@ -147,6 +146,7 @@ class Server(ServerAdapter):
protocol by adding custom classes to the cheroot.server.wsgi_gateways dict."""
def __init__(self):
+ """Initialize Server instance."""
self.bus = cherrypy.engine
self.httpserver = None
self.interrupt = None
@@ -202,7 +202,9 @@ class Server(ServerAdapter):
'a str for Unix domain sockets.')
def base(self):
- """Return the base (scheme://host[:port] or sock file) for this server.
+ """Return the base for this server.
+
+ e.i. scheme://host[:port] or sock file
"""
if self.socket_file:
return self.socket_file
