Method Bz2.Deflate()->finish() Method finish string finish(string data) Description This method feeds the data to the internal buffers of the Deflate object. Then it compresses all buffered data adds a end of data marker ot it, returns the compressed data as a string, and reinitializes the deflate object. See also Bz2.Deflate->feed() Bz2.Deflate->read()