From 5a865e7f9fd8745006c581519802dfc321acfeea Mon Sep 17 00:00:00 2001 From: SE2Dev Date: Fri, 12 Jan 2018 17:29:49 -0500 Subject: [PATCH] Fix LZ4 Compression for Python-LZ4 --- _lz4.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/_lz4.py b/_lz4.py index 2fd22eb..f6a3965 100644 --- a/_lz4.py +++ b/_lz4.py @@ -122,7 +122,10 @@ def compress(data): else: # Use python-lz4 if present __support_mode__ = 'python-lz4' - compress = lz4.block.compress + + def compress(data): + return lz4.block.compress(data, store_size=False) + uncompress = lz4.block.decompress support_info = 'LZ4: Using %s' % __support_mode__