Skip to content

Commit

Permalink
Fix LZ4 Compression for Python-LZ4
Browse files Browse the repository at this point in the history
  • Loading branch information
SE2Dev committed Jan 14, 2018
1 parent 5e984d0 commit 5a865e7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion _lz4.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__

0 comments on commit 5a865e7

Please sign in to comment.