diff options
author | Anthony Wang | 2023-02-21 22:24:51 -0500 |
---|---|---|
committer | Anthony Wang | 2023-02-21 22:24:51 -0500 |
commit | 072de7c41b1bdfcc56cfa1934234bbc795324da9 (patch) | |
tree | bd59d8c05d332bb2827ce8814e124a27fa57cf62 | |
parent | 19644d41f3ce115a92142f09d7ffec5690faa44c (diff) |
Replace tostring with tobytes
-rw-r--r-- | rebuild_db.py | 6 |
1 files 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)) |