From 072de7c41b1bdfcc56cfa1934234bbc795324da9 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Tue, 21 Feb 2023 22:24:51 -0500 Subject: Replace tostring with tobytes --- rebuild_db.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rebuild_db.py b/rebuild_db.py index ee42792..0675684 100644 --- a/rebuild_db.py +++ b/rebuild_db.py @@ -255,15 +255,15 @@ def write_to_db(filename): if not entry: header[29]=props['type'] # debug galt: - #galt = entry=header.tostring() + #galt = entry=header.tobytes() #print("typeofGALT",type(galt)) # this is apparently returning type bytes ? galt = "".join([c+"\0" for c in filename[:261]])+ \ "\0"*(525-2*len(filename)) - entry=header.tostring()+galt.encode() + entry=header.tobytes()+galt.encode() # ORIG -# entry=header.tostring()+ \ +# entry=header.tobytes()+ \ # "".join([c+"\0" for c in filename[:261]])+ \ # "\0"*(525-2*len(filename)) -- cgit v1.2.3-70-g09d2