Skip to content

Commit 73705ce

Browse files
authored
Replace fromstring with frombuffer
1 parent 8ad6ed9 commit 73705ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

blosc/toplevel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ def compress_ptr(address, items, typesize=8, clevel=9, shuffle=blosc.SHUFFLE,
513513
>>> c = blosc.compress_ptr(np_array.__array_interface__['data'][0], \
514514
items, np_array.dtype.itemsize)
515515
>>> d = blosc.decompress(c)
516-
>>> np_ans = numpy.fromstring(d, dtype=np_array.dtype)
516+
>>> np_ans = numpy.frombuffer(d, dtype=np_array.dtype)
517517
>>> bool((np_array == np_ans).all())
518518
True
519519

0 commit comments

Comments
 (0)