(self, stream, compress=True)
Create a new TarLibraryPackage.

    Args:
      stream: (file) A file-like object to write to.
      compress: (boolean) Whether to gzip-compress the output.
Create a new TarLibraryPackage.
Create a new TarLibraryPackage .
def __init__(self, stream, compress=True):
    """Create a new TarLibraryPackage.

    Args:
      stream: (file) A file-like object to write to.
      compress: (boolean) Whether to gzip-compress the output.
    """
    super(TarLibraryPackage, self).__init__()
    mode = 'w:gz' if compress else 'w'
    self._tar = tarfile.open(fileobj=stream, mode=mode)
    self._current_file_data = None
    self._compress = compress
def __init__ ( self , stream , compress = True ) : super ( TarLibraryPackage , self ) . __init__ ( ) mode = 'w:gz' if compress else 'w' self . _tar = tarfile . open ( fileobj = stream , mode = mode ) self . _current_file_data = None self . _compress = compress