Skip to content

Commit

Permalink
update tostring to tobytes
Browse files Browse the repository at this point in the history
  • Loading branch information
dma1dma1 committed Nov 15, 2023
1 parent 670c816 commit 07ceb48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codalab/model/mysql_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 07ceb48

Please sign in to comment.