tools/mac/download_symbols.py
def _extract_symbols_to(symbol_request, dest_dir):
    """Performs a streaming extract of the symbol files.

    Args:
        symbol_request: The HTTPResponse object for the symbol URL.
        dest_dir: The destination directory into which the files will be
                  extracted.

    Returns: True on successful download and extraction, False on error.
    """
    proc = subprocess.Popen(['tar', 'xjf', '-'],
                            cwd=dest_dir,
                            stdin=subprocess.PIPE,
                            stdout=sys.stderr,
                            stderr=sys.stderr)
    while True:
        data = symbol_request.read(4096)
        if not data:
            proc.stdin.close()
            break
        proc.stdin.write(data)
    proc.wait()

    return proc.returncode == 0
Performs a streaming extract of the symbol files.

    Args:
        symbol_request: The HTTPResponse object for the symbol URL.
        dest_dir: The destination directory into which the files will be
                  extracted.

    Returns: True on successful download and extraction, False on error.
    
Performs a streaming extract of the symbol files.
Performs a streaming extract of the symbol files .
def _extract_symbols_to(symbol_request, dest_dir):
    proc = subprocess.Popen(['tar', 'xjf', '-'],
                            cwd=dest_dir,
                            stdin=subprocess.PIPE,
                            stdout=sys.stderr,
                            stderr=sys.stderr)
    while True:
        data = symbol_request.read(4096)
        if not data:
            proc.stdin.close()
            break
        proc.stdin.write(data)
    proc.wait()
    return proc.returncode == 0
def _extract_symbols_to ( symbol_request , dest_dir ) : proc = subprocess . Popen ( [ 'tar' , 'xjf' , '-' ] , cwd = dest_dir , stdin = subprocess . PIPE , stdout = sys . stderr , stderr = sys . stderr ) while True : data = symbol_request . read ( 4096 ) if not data : proc . stdin . close ( ) break proc . stdin . write ( data ) proc . wait ( ) return proc . returncode == 0
Performs a streaming extract of the symbol files.
Performs a streaming extract of the symbol files .
"""Performs a streaming extract of the symbol files.

    Args:
        symbol_request: The HTTPResponse object for the symbol URL.
        dest_dir: The destination directory into which the files will be
                  extracted.

    Returns: True on successful download and extraction, False on error.
    """
symbol_request
The HTTPResponse object for the symbol URL.
The HTTPResponse object for the symbol URL .
dest_dir
The destination directory into which the files will be
extracted.
The destination directory into which the files will be extracted .