Skip to content

Commit c6cccdd

Browse files
committed
Undo an unneceesary workaround
1 parent 79cd7ab commit c6cccdd

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

src/blosc2/schunk.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -676,15 +676,7 @@ def get_chunk(self, nchunk: int) -> bytes:
676676

677677
def get_vlblock(self, nchunk: int, nblock: int) -> bytes:
678678
"""Return the decompressed payload of one VL block from a chunk."""
679-
get_vlblock = getattr(super(), "get_vlblock", None)
680-
if get_vlblock is not None:
681-
return get_vlblock(nchunk, nblock)
682-
683-
block_payloads = blosc2_ext.vldecompress(self.get_chunk(nchunk), **asdict(self.dparams))
684-
try:
685-
return block_payloads[nblock]
686-
except IndexError as exc:
687-
raise IndexError("VL block index out of range") from exc
679+
return super().get_vlblock(nchunk, nblock)
688680

689681
def delete_chunk(self, nchunk: int) -> int:
690682
"""Delete the specified chunk from the SChunk.

0 commit comments

Comments
 (0)