parameters: (archive, location, log = EmptyLogger())
docstring: Unpacks a mingw-builds archive
docstring_summary: Unpacks a mingw-builds archive
docstring_tokens: Unpacks a mingw - builds archive
function: def unpack(archive, location, log = EmptyLogger()):
      '''
      Unpacks a mingw-builds archive
      '''
      sevenzip = find_7zip(log)
      log.info('unpacking %s', os.path.basename(archive))
      cmd = [sevenzip, 'x', archive, '-o' + location, '-y']
      log.debug(' - %r', cmd)
      with open(os.devnull, 'w') as devnull:
          subprocess.check_call(cmd, stdout = devnull)
function_tokens: def unpack ( archive , location , log = EmptyLogger ( ) ) : sevenzip = find_7zip ( log ) log . info ( 'unpacking %s' , os . path . basename ( archive ) ) cmd = [ sevenzip , 'x' , archive , '-o' + location , '-y' ] log . debug ( ' - %r' , cmd ) with open ( os . devnull , 'w' ) as devnull : subprocess . check_call ( cmd , stdout = devnull )