(proto)
This creates and returns a ready-to-go TorConfig instance from the
        given protocol, which should be an instance of
        TorControlProtocol.
This creates and returns a ready-to-go TorConfig instance from the
        given protocol, which should be an instance of
        TorControlProtocol.
This creates and returns a ready - to - go TorConfig instance from the given protocol which should be an instance of TorControlProtocol .
def from_protocol(proto):
        """
        This creates and returns a ready-to-go TorConfig instance from the
        given protocol, which should be an instance of
        TorControlProtocol.
        """
        cfg = TorConfig(control=proto)
        yield cfg.post_bootstrap
        defer.returnValue(cfg)
def from_protocol ( proto ) : cfg = TorConfig ( control = proto ) yield cfg . post_bootstrap defer . returnValue ( cfg )