def unregisterWebsocketProtocol(self, connection, protocol):
        """ Unregister the client protocol from a Connection object.

            @param connection:  Connection where the protocol should be
                                unregistered.
            @type  connection:  rce.robot.Connection

            @param protocol:    Protocol which should be unregistered.
            @type  protocol:    rce.comm.interfaces.IServersideProtocol
        """
        assert self._deathCandidates not in connection
        deathCall = self._reactor.callLater(self.RECONNECT_TIMEOUT,
                                            self._killConnection, connection)
        self._deathCandidates[connection] = deathCall

        connection.unregisterProtocol(protocol)
dataset/ETHPy150Open rapyuta/rce/rce-core/rce/robot.py/RobotClient.unregisterWebsocketProtocol/swapped operands of `not in`