# encoding: utf-8
# module _bz2
# from /usr/lib/python3.4/lib-dynload/_bz2.cpython-34m.so
# by generator 1.135
# no doc
# no imports

# no functions
# classes

from .object import object

class BZ2Compressor(object):
    """
    Create a compressor object for compressing data incrementally.
    
      compresslevel
        Compression level, as a number between 1 and 9.
    
    For one-shot compression, use the compress() function instead.
    """
    def compress(self, *args, **kwargs): # real signature unknown
        """
        Provide data to the compressor object.
        
        Returns a chunk of compressed data if possible, or b'' otherwise.
        
        When you have finished providing data to the compressor, call the
        flush() method to finish the compression process.
        """
        pass

    def flush(self, *args, **kwargs): # real signature unknown
        """
        Finish the compression process.
        
        Returns the compressed data left in internal buffers.
        
        The compressor object may not be used after this method is called.
        """
        pass

    def __getstate__(self, *args, **kwargs): # real signature unknown
        pass

    def __init__(self, *args, **kwargs): # real signature unknown
        pass

    @staticmethod # known case of __new__
    def __new__(*args, **kwargs): # real signature unknown
        """ Create and return a new object.  See help(type) for accurate signature. """
        pass


from .object import object

class BZ2Decompressor(object):
    """
    Create a decompressor object for decompressing data incrementally.
    
    For one-shot decompression, use the decompress() function instead.
    """
    def decompress(self, *args, **kwargs): # real signature unknown
        """
        Provide data to the decompressor object.
        
        Returns a chunk of decompressed data if possible, or b'' otherwise.
        
        Attempting to decompress data after the end of stream is reached
        raises an EOFError.  Any data found after the end of the stream
        is ignored and saved in the unused_data attribute.
        """
        pass

    def __getstate__(self, *args, **kwargs): # real signature unknown
        pass

    def __init__(self, *args, **kwargs): # real signature unknown
        pass

    @staticmethod # known case of __new__
    def __new__(*args, **kwargs): # real signature unknown
        """ Create and return a new object.  See help(type) for accurate signature. """
        pass

    eof = property(lambda self: object(), lambda self, v: None, lambda self: None)  # default
    """True if the end-of-stream marker has been reached."""

    unused_data = property(lambda self: object(), lambda self, v: None, lambda self: None)  # default
    """Data found after the end of the compressed stream."""



# variables with complex values

__loader__ = None # (!) real value is ''

__spec__ = None # (!) real value is ''

