Skip to content

Commit

Permalink
Update pycatfile.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KazukiPrzyborowski committed Dec 12, 2024
1 parent 925c27e commit 1e20dcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycatfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -3259,7 +3259,7 @@ def UncompressArchiveFile(fp, formatspecs=__file_format_dict__):
elif(compresscheck == "zstd" and compresscheck in compressionsupport):
catfp = zstd.ZstdDecompressor().stream_reader(fp)
elif(compresscheck == "lz4" and compresscheck in compressionsupport):
catfp = lz4.frame.open_fp(fp, mode='rb')
catfp = lz4.frame.LZ4FrameFile(fp, mode='rb')
elif((compresscheck == "lzo" or compresscheck == "lzop") and compresscheck in compressionsupport):
catfp = BytesIO()
catfp.write(lzo.decompress(fp.read()))
Expand Down

0 comments on commit 1e20dcf

Please sign in to comment.