if isinstance(server, type):
if issubclass(server, CGIServer):
server = server()
elif issubclass(server, ServerAdapter):
server = server(host=host, port=port, **kargs)
if isinstance(server, type):
if issubclass(server, CGIServer):
server = server()
elif issubclass(server, ServerAdapter):
server = server(host=host, port=port, **kargs)