def Decompress(self, compressed_data):
    """Decompresses the compressed data.

    Args:
      compressed_data (bytes): compressed data.

    Returns:
      tuple(bytes, bytes): uncompressed data and remaining compressed data.

    Raises:
      BackEndError: if the BZIP2 compressed stream cannot be decompressed.
    """
    try:
      uncompressed_data = self._bz2_decompressor.decompress(compressed_data)
      remaining_compressed_data = getattr(
          self._bz2_decompressor, 'unused_data', b'')

    except (EOFError, IOError) as exception:
      raise errors.BackEndError((
          'Unable to decompress BZIP2 compressed stream with error: '
          '{0!s}.').format(exception))

    return uncompressed_data, remaining_compressed_data
def Decompress ( self , compressed_data ) : try : uncompressed_data = self . _bz2_decompressor . decompress ( compressed_data ) remaining_compressed_data = getattr ( self . _bz2_decompressor , 'unused_data' , b'' ) except ( EOFError , IOError ) as exception : raise errors . BackEndError ( ( 'Unable to decompress BZIP2 compressed stream with error: ' '{0!s}.' ) . format ( exception ) ) return uncompressed_data , remaining_compressed_data
Decompresses the compressed data.

    Args:
      compressed_data (bytes): compressed data.

    Returns:
      tuple(bytes, bytes): uncompressed data and remaining compressed data.

    Raises:
      BackEndError: if the BZIP2 compressed stream cannot be decompressed.