Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions mpyq.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import zlib
from collections import namedtuple
from io import BytesIO
import dclimplode


__author__ = "Aku Kotkavuo"
Expand Down Expand Up @@ -197,6 +198,8 @@ def decompress(data):
return data
elif compression_type == 2:
return zlib.decompress(data[1:], 15)
elif compression_type == 8:
return dclimplode.decompressobj().decompress(data[1:])
elif compression_type == 16:
return bz2.decompress(data[1:])
else:
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
argparse; python_version < "2.7"
mock; python_version < "3.3"
six
dclimplode
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@
'argparse; python_version < "2.7"',
'mock; python_version < "3.3"',
'six',
'dclimplode',
])