def _is_well_formed_seed_string(string):
    '''
    Parse string url:port,key
    '''
    if ',' in string:
        url, key = string.split(',')
        parsed = urlparse(url)
        if _validate_url(parsed.geturl()):
            if _validate_key(key):
                return True

    return False
dataset/ETHPy150Open OpenBazaar/OpenBazaar-Server/config.py/_is_well_formed_seed_string/original