Skip to content

Commit 631c72e

Browse files
committed
chore(deps): get rid of python-lzo.
1 parent 345bde8 commit 631c72e

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

poetry.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ structlog = "^21.2.0"
1717
arpy = "^2.2.0"
1818
rarfile = "^4.0"
1919
ubi-reader = "^0.8.5"
20-
python-lzo = "^1.14"
2120
plotext = ">=4.2.0,<6.0"
2221
pluggy = "^1.0.0"
2322
python-magic = "^0.4.27"

unblob/handlers/compression/lzo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import io
2+
import zlib
23
from enum import IntEnum
34
from typing import Optional
45

5-
import lzo
66
from structlog import get_logger
77

88
from unblob.extractors import Command
@@ -95,11 +95,11 @@ def calculate_chunk(self, file: File, start_offset: int) -> Optional[ValidChunk]
9595

9696
# Checksum excludes the magic and the checksum itself
9797
if header.flags & HeaderFlags.H_CRC32:
98-
calculated_checksum = lzo.crc32(
98+
calculated_checksum = zlib.crc32(
9999
header.dumps()[MAGIC_LENGTH:-CHECKSUM_LENGTH]
100100
)
101101
else:
102-
calculated_checksum = lzo.adler32(
102+
calculated_checksum = zlib.adler32(
103103
header.dumps()[MAGIC_LENGTH:-CHECKSUM_LENGTH]
104104
)
105105

0 commit comments

Comments
 (0)