chrome/tools/build/win/resedit.py
def ExtractResource(self, res_type, res_lang, res_name, dest_file):
    """Extracts a given resource, specified by type, language id and name,
    to a given file.

    Args:
      res_type: the type of the resource, e.g. "B7".
      res_lang: the language id of the resource e.g. 1033.
      res_name: the name of the resource, e.g. "SETUP.EXE".
      dest_file: path to the file where the resource data will be written.
    """
    _LOGGER.info('Extracting resource "%s", lang "%d" name "%s" '
                 'to file "%s".', res_type, res_lang, res_name, dest_file)

    data = win32api.LoadResource(self.module, res_type, res_name, res_lang)
    with open(dest_file, 'wb') as f:
      f.write(data)
Extracts a given resource, specified by type, language id and name,
    to a given file.

    Args:
      res_type: the type of the resource, e.g. "B7".
      res_lang: the language id of the resource e.g. 1033.
      res_name: the name of the resource, e.g. "SETUP.EXE".
      dest_file: path to the file where the resource data will be written.
    
Extracts a given resource, specified by type, language id and name,
to a given file.
Extracts a given resource specified by type language id and name to a given file .
def ExtractResource(self, res_type, res_lang, res_name, dest_file):
    _LOGGER.info('Extracting resource "%s", lang "%d" name "%s" '
                 'to file "%s".', res_type, res_lang, res_name, dest_file)
    data = win32api.LoadResource(self.module, res_type, res_name, res_lang)
    with open(dest_file, 'wb') as f:
      f.write(data)
def ExtractResource ( self , res_type , res_lang , res_name , dest_file ) : _LOGGER . info ( 'Extracting resource "%s", lang "%d" name "%s" ' 'to file "%s".' , res_type , res_lang , res_name , dest_file ) data = win32api . LoadResource ( self . module , res_type , res_name , res_lang ) with open ( dest_file , 'wb' ) as f : f . write ( data )
Extracts a given resource, specified by type, language id and name,
to a given file.
Extracts a given resource specified by type language id and name to a given file .
"""Extracts a given resource, specified by type, language id and name,
    to a given file.

    Args:
      res_type: the type of the resource, e.g. "B7".
      res_lang: the language id of the resource e.g. 1033.
      res_name: the name of the resource, e.g. "SETUP.EXE".
      dest_file: path to the file where the resource data will be written.
    """
self
res_type
the type of the resource, e.g. "B7".
the type of the resource e . g . " B7 " .
res_lang
the language id of the resource e.g. 1033.
the language id of the resource e . g . 1033 .
res_name
the name of the resource, e.g. "SETUP.EXE".
the name of the resource e . g . " SETUP . EXE " .
dest_file
path to the file where the resource data will be written.
path to the file where the resource data will be written .