From 07ceb4826932500ab09734ff55f9d71a3e23e087 Mon Sep 17 00:00:00 2001 From: Daniel Ma Date: Wed, 15 Nov 2023 03:14:42 -0800 Subject: [PATCH] update tostring to tobytes --- codalab/model/mysql_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codalab/model/mysql_model.py b/codalab/model/mysql_model.py index 8f6760702..e9bcf7578 100644 --- a/codalab/model/mysql_model.py +++ b/codalab/model/mysql_model.py @@ -70,4 +70,4 @@ def encode_str(self, value): return value.encode() def decode_str(self, value): - return array.array('B', [ord(char) for char in value]).tostring().decode() + return array.array('B', [ord(char) for char in value]).tobytes().decode()