parameters: (path)
docstring: IterateTar opens the tar.gz file at path and returns a generator of
    (filename, mode, fileobj) tuples for each file in it.
docstring_summary: IterateTar opens the tar.gz file at path and returns a generator of
    (filename, mode, fileobj) tuples for each file in it.
docstring_tokens: IterateTar opens the tar . gz file at path and returns a generator of ( filename mode fileobj ) tuples for each file in it .
function: def IterateTar(path):
    """
    IterateTar opens the tar.gz file at path and returns a generator of
    (filename, mode, fileobj) tuples for each file in it.
    """
    with tarfile.open(path, 'r:gz') as tar_file:
      for info in tar_file:
        if info.isdir():
          continue
        if not info.isfile():
          raise ValueError('Unknown entry type "%s"' % (info.name, ))
        yield (info.name, info.mode, tar_file.extractfile(info))
function_tokens: def IterateTar ( path ) : with tarfile . open ( path , 'r:gz' ) as tar_file : for info in tar_file : if info . isdir ( ) : continue if not info . isfile ( ) : raise ValueError ( 'Unknown entry type "%s"' % ( info . name , ) ) yield ( info . name , info . mode , tar_file . extractfile ( info ) )