Skip to content

Commit c608fef

Browse files
committed
rm ensure_bytes
1 parent b6faac6 commit c608fef

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/zarr/codecs/_v2.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
from typing import TYPE_CHECKING
66

77
import numcodecs
8-
import numcodecs.compat
9-
from numcodecs.compat import ensure_bytes, ensure_ndarray_like
8+
from numcodecs.compat import ensure_ndarray_like
109

1110
from zarr.abc.codec import ArrayBytesCodec
1211
from zarr.registry import get_ndbuffer_class
@@ -84,8 +83,6 @@ async def _encode_single(
8483
else:
8584
cdata = chunk
8685

87-
cdata = ensure_bytes(cdata)
88-
8986
return chunk_spec.prototype.buffer.from_bytes(cdata)
9087

9188
def compute_encoded_size(self, _input_byte_length: int, _chunk_spec: ArraySpec) -> int:

0 commit comments

Comments
 (0)