Skip to content

Commit

Permalink
fix for compress
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Jun 19, 2018
1 parent 4e6e1ce commit 9f0fae8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lomond/compression.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ def compress(self, payload):
"""Compress payload, return compressed data."""
data = (
self._compressobj.compress(payload)
+ self._compressobj.flush(zlib.Z_SYNC_FLUSH)[:-4]
)
+ self._compressobj.flush(zlib.Z_SYNC_FLUSH)
)[:-4]
if self.reset_compress:
self.reset_compressor()
return data

0 comments on commit 9f0fae8

Please sign in to comment.