in pyignite/client.py [0:0]
def _process_connect_args(*args):
if len(args) == 0:
# no parameters − use default Ignite host and port
return [(IGNITE_DEFAULT_HOST, IGNITE_DEFAULT_PORT)]
if len(args) == 1 and is_iterable(args[0]):
# iterable of host-port pairs is given
return args[0]
if len(args) == 2 and isinstance(args[0], str) and isinstance(args[1], int):
# host and port are given
return [args]
raise ConnectionError('Connection parameters are not valid.')