def __init__(self, *args, **kwargs):
        self.protocol = kwargs.pop('protocol', 'tcp')
        self.endpoint = kwargs.pop('endpoint', '127.0.0.1:4141')
        self.host = (self.protocol, self.endpoint) % "%s://%s"

        self.context = None
        self.socket = None
        self.timeout = kwargs.pop('timeout', 10000)

        self.db_uid = None
        self.db_name = None

        self.setup_socket()

        if self.ping():
            self.connect()
        else:
            failure_msg = 'No elevator server hanging on {0}://{1}'.format(self.protocol, self.endpoint)
            output_result(FAILURE_STATUS, failure_msg)
dataset/ETHPy150Open oleiade/Elevator/elevator_cli/client.py/Client.__init__/swapped operands of `%`