'Gathers a list of base URLs we will try.'

def _GetBaseURLs(self):

    result = config.CONFIG['Client.server_urls']
    if (not result):
        for control_url in config.CONFIG['Client.control_urls']:
            result.append((posixpath.dirname(control_url) + '/'))
    for url in result:
        if (not url.endswith('/')):
            raise RuntimeError(('Bad    URL:    %s    URLs    must    end    with    /' % url))
    return result
