fdutils/db/db.py
def parse_multiple_hosts(host):
    """ A host can be given as a csv of ip:port values and this function creates the list properly """
    hosts = host.split(',')
    cluster = []
    for host in hosts:
        host, *port = host.split(':')
        cluster.append((host,port[0] if port else None))
    return cluster
 A host can be given as a csv of ip:port values and this function creates the list properly 
A host can be given as a csv of ip:port values and this function creates the list properly
A host can be given as a csv of ip : port values and this function creates the list properly
def parse_multiple_hosts(host):
    hosts = host.split(',')
    cluster = []
    for host in hosts:
        host, *port = host.split(':')
        cluster.append((host,port[0] if port else None))
    return cluster
def parse_multiple_hosts ( host ) : hosts = host . split ( ',' ) cluster = [ ] for host in hosts : host , * port = host . split ( ':' ) cluster . append ( ( host , port [ 0 ] if port else None ) ) return cluster
A host can be given as a csv of ip:port values and this function creates the list properly
A host can be given as a csv of ip : port values and this function creates the list properly
""" A host can be given as a csv of ip:port values and this function creates the list properly """
host