(self, bind, encoding="utf-8", secure=False, certfile=None,
                 channel=channel, display_banner=True)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
x . __init__ ( ... ) initializes x ; see x . __class__ . __doc__ for signature
def __init__(self, bind, encoding="utf-8", secure=False, certfile=None,
                 channel=channel, display_banner=True):
        "x.__init__(...) initializes x; see x.__class__.__doc__ for signature"

        super(BaseServer, self).__init__(channel=channel)

        self._display_banner = display_banner

        if isinstance(bind, (int, list, tuple,)):
            SocketType = TCPServer
        else:
            SocketType = TCPServer if ":" in bind else UNIXServer

        self.server = SocketType(
            bind,
            secure=secure,
            certfile=certfile,
            channel=channel
        ).register(self)

        self.http = HTTP(
            self, encoding=encoding, channel=channel
        ).register(self)
def __init__ ( self , bind , encoding = "utf-8" , secure = False , certfile = None , channel = channel , display_banner = True ) : super ( BaseServer , self ) . __init__ ( channel = channel ) self . _display_banner = display_banner if isinstance ( bind , ( int , list , tuple , ) ) : SocketType = TCPServer else : SocketType = TCPServer if ":" in bind else UNIXServer self . server = SocketType ( bind , secure = secure , certfile = certfile , channel = channel ) . register ( self ) self . http = HTTP ( self , encoding = encoding , channel = channel ) . register ( self )