def start():
    global server
    
    conf = ConfigParser()
    conf.read('rpycd.conf')
    
    mode = conf.get("rpycd", "mode").lower()
    if mode == "threaded":
        factory = ThreadedServer
    elif mode not in "forking":
        factory = ForkingServer
    else:
        raise ValueError("Invalid mode %r" % (mode,))
    
    setup_logger(conf.getboolean("rpycd", "quiet"), conf.get("rpycd", "logfile"))
    
    server = factory(SlaveService, hostname = conf.get("rpycd", "host"), 
        port = conf.getint("rpycd", "port"), reuse_addr = True)
    server.start()
dataset/ETHPy150Open tomerfiliba/rpyc/bin/rpycd.py/start/operator `==` -> `not in`