@@ -445,7 +445,7 @@ def append(self, arctic_lib, version, symbol, item, previous_version, dtype=None
445445 self ._do_append (collection , version , symbol , item , previous_version , dirty_append )
446446
447447 def _do_append (self , collection , version , symbol , item , previous_version , dirty_append ):
448- data = item .tostring ()
448+ data = item .tobytes ()
449449 # Compatibility with Arctic 1.22.0 that didn't write base_sha into the version document
450450 version ['base_sha' ] = previous_version .get ('base_sha' , Binary (b'' ))
451451 version ['up_to' ] = previous_version ['up_to' ] + len (item )
@@ -596,7 +596,7 @@ def check_written(collection, symbol, version):
596596
597597 def checksum (self , item ):
598598 sha = hashlib .sha1 ()
599- sha .update (item .tostring ())
599+ sha .update (item .tobytes ())
600600 return Binary (sha .digest ())
601601
602602 def write (self , arctic_lib , version , symbol , item , previous_version , dtype = None ):
@@ -656,7 +656,7 @@ def _do_write(self, collection, version, symbol, item, previous_version, segment
656656
657657 # Compress
658658 idxs = range (int (np .ceil (float (length ) / rows_per_chunk )))
659- chunks = [(item [i * rows_per_chunk : (i + 1 ) * rows_per_chunk ]).tostring () for i in idxs ]
659+ chunks = [(item [i * rows_per_chunk : (i + 1 ) * rows_per_chunk ]).tobytes () for i in idxs ]
660660 compressed_chunks = compress_array (chunks )
661661
662662 # Write
0 commit comments