(data, format=FORMAT_XZ, check=-1, preset=None, filters=None)
return comp.compress(data) + comp.flush()
Compress a block of data.

    Refer to LZMACompressor's docstring for a description of the
    optional arguments *format*, *check*, *preset* and *filters*.

    For incremental compression, use an LZMACompressor instead.
Compress a block of data.
Compress a block of data .
def compress(data, format=FORMAT_XZ, check=-1, preset=None, filters=None):
    """Compress a block of data.

    Refer to LZMACompressor's docstring for a description of the
    optional arguments *format*, *check*, *preset* and *filters*.

    For incremental compression, use an LZMACompressor instead.
    """
    comp = LZMACompressor(format, check, preset, filters)
    return comp.compress(data) + comp.flush()
def compress ( data , format = FORMAT_XZ , check = - 1 , preset = None , filters = None ) : comp = LZMACompressor ( format , check , preset , filters ) return comp . compress ( data ) + comp . flush ( )