chrome/test/mini_installer/variable_expander.py
def _GetProductName(file_path):
    """Returns the product name of the given file.

    Args:
        file_path: The absolute or relative path to the file.

    Returns:
        A string representing the product name of the file, or None if the
        product name was not found.
    """
    language_and_codepage_pairs = win32api.GetFileVersionInfo(
        file_path, '\\VarFileInfo\\Translation')
    if not language_and_codepage_pairs:
        return None
    product_name_entry = ('\\StringFileInfo\\%04x%04x\\ProductName' %
                          language_and_codepage_pairs[0])
    return win32api.GetFileVersionInfo(file_path, product_name_entry)
Returns the product name of the given file.

    Args:
        file_path: The absolute or relative path to the file.

    Returns:
        A string representing the product name of the file, or None if the
        product name was not found.
    
Returns the product name of the given file.
Returns the product name of the given file .
def _GetProductName(file_path):
    language_and_codepage_pairs = win32api.GetFileVersionInfo(
        file_path, '\\VarFileInfo\\Translation')
    if not language_and_codepage_pairs:
        return None
    product_name_entry = ('\\StringFileInfo\\%04x%04x\\ProductName' %
                          language_and_codepage_pairs[0])
    return win32api.GetFileVersionInfo(file_path, product_name_entry)
def _GetProductName ( file_path ) : language_and_codepage_pairs = win32api . GetFileVersionInfo ( file_path , '\\VarFileInfo\\Translation' ) if not language_and_codepage_pairs : return None product_name_entry = ( '\\StringFileInfo\\%04x%04x\\ProductName' % language_and_codepage_pairs [ 0 ] ) return win32api . GetFileVersionInfo ( file_path , product_name_entry )
Returns the product name of the given file.
Returns the product name of the given file .
"""Returns the product name of the given file.

    Args:
        file_path: The absolute or relative path to the file.

    Returns:
        A string representing the product name of the file, or None if the
        product name was not found.
    """
A string representing the product name of the file, or None if the
product name was not found.
A string representing the product name of the file or None if the product name was not found .
file_path
The absolute or relative path to the file.
The absolute or relative path to the file .