def delserver(self, name):
        ''' Remove a server and hang up any connection.
        '''
        self.servers_lock.acquire()
        if name == self.servers:
            self.servers_lock.release()
            return
        (host, port, sock) = self.servers.pop(name)
        if sock is not None:
            if self.verbose:
                self.session.info("closing connection with %s @ %s:%s" % \
                                  (name, host, port))
            sock.close()
        self.servers_lock.release()
dataset/ETHPy150Open coreemu/core/daemon/core/broker.py/CoreBroker.delserver/operator `not in` -> `==`