1. cherrypy
  2. CherryPy

Source

CherryPy / cherrypy / _cpserver.py

Diff from to

File cherrypy/_cpserver.py

             server_class = kwargs['serverClass']
         
         conf = cherrypy.config.get
+        
+        if not init_only:
+            init_only = conf('server.init_only', False)
+        
+        if server is None:
+            server = conf('server.instance', None)
         if server is None:
             if server_class is _missing:
                 server_class = conf("server.class", _missing)
             if server_class is not None:
                 self.httpserver = server_class()
         else:
+            if isinstance(server, basestring):
+                server = cptools.attributes(server)
             self.httpserverclass = server.__class__
             self.httpserver = server