tools/mac/download_symbols.py
def _download_and_extract(version, channel, arch, dest_dir):
    """Performs the download and extraction of the symbol files. Returns the
    path to the extracted symbol files on success, None on error.
    """
    url, dest_dir = _get_url_and_dest(version, channel, arch, dest_dir)
    remove_on_failure = False
    if not os.path.isdir(dest_dir):
        os.mkdir(dest_dir)
        remove_on_failure = True

    try:
        with request.urlopen(url) as symbol_request:
            print('Downloading and extracting symbols to {}'.format(dest_dir),
                  file=sys.stderr)
            print('This will take a minute...', file=sys.stderr)
            if _extract_symbols_to(symbol_request, dest_dir):
                return dest_dir
    except:
        pass

    if remove_on_failure:
        shutil.rmtree(dest_dir)
    return None
Performs the download and extraction of the symbol files. Returns the
    path to the extracted symbol files on success, None on error.
    
Performs the download and extraction of the symbol files. Returns the
path to the extracted symbol files on success, None on error.
Performs the download and extraction of the symbol files . Returns the path to the extracted symbol files on success None on error .
def _download_and_extract(version, channel, arch, dest_dir):
    url, dest_dir = _get_url_and_dest(version, channel, arch, dest_dir)
    remove_on_failure = False
    if not os.path.isdir(dest_dir):
        os.mkdir(dest_dir)
        remove_on_failure = True
    try:
        with request.urlopen(url) as symbol_request:
            print('Downloading and extracting symbols to {}'.format(dest_dir),
                  file=sys.stderr)
            print('This will take a minute...', file=sys.stderr)
            if _extract_symbols_to(symbol_request, dest_dir):
                return dest_dir
    except:
        pass
    if remove_on_failure:
        shutil.rmtree(dest_dir)
    return None
def _download_and_extract ( version , channel , arch , dest_dir ) : url , dest_dir = _get_url_and_dest ( version , channel , arch , dest_dir ) remove_on_failure = False if not os . path . isdir ( dest_dir ) : os . mkdir ( dest_dir ) remove_on_failure = True try : with request . urlopen ( url ) as symbol_request : print ( 'Downloading and extracting symbols to {}' . format ( dest_dir ) , file = sys . stderr ) print ( 'This will take a minute...' , file = sys . stderr ) if _extract_symbols_to ( symbol_request , dest_dir ) : return dest_dir except : pass if remove_on_failure : shutil . rmtree ( dest_dir ) return None
Performs the download and extraction of the symbol files.
Performs the download and extraction of the symbol files .
"""Performs the download and extraction of the symbol files. Returns the
    path to the extracted symbol files on success, None on error.
    """
version
channel
arch
dest_dir