From f25180c3cfce5cd3f4641db729193dc87db8858e Mon Sep 17 00:00:00 2001 From: omicron Date: Thu, 25 Sep 2025 20:54:13 +0200 Subject: [PATCH] Update to new bitarray API in the item code huffman decoding --- d2warehouse/huffman.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d2warehouse/huffman.py b/d2warehouse/huffman.py index 2f2e37d..b10fb1b 100644 --- a/d2warehouse/huffman.py +++ b/d2warehouse/huffman.py @@ -62,7 +62,7 @@ decode_tree = decodetree(code) def decode(bits: bitarray, n) -> tuple[str, int]: - text = "".join(itertools.islice(bits.iterdecode(decode_tree), n)) + text = "".join(itertools.islice(bits.decode(decode_tree), n)) length = len(encode(text)) return text, length