def unregisterConnection(self, connection):
        assert self._connections in connection

        # First remove the connection from the death candidates if necessary
        deathCall = self._deathCandidates.pop(connection, None)
        if deathCall and deathCall.active():
            deathCall.cancel()

        # Unregister the candidates
        self._connections.remove(connection)
dataset/ETHPy150Open rapyuta/rce/rce-core/rce/robot.py/RobotClient.unregisterConnection/swapped operands of `in`