Skip to content

Commit

Permalink
DFReader_text: some arrays indexed by bytes instead of str
Browse files Browse the repository at this point in the history
  • Loading branch information
shancock884 committed Jan 19, 2024
1 parent 57646ca commit 88e7e46
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions DFReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -1147,8 +1147,7 @@ def init_arrays(self, progress_callback=None):

while ofs+16 < self.data_len:
mtype = self.data_map[ofs:ofs+4]
if mtype[3] == b',':
mtype = mtype[0:3]
mtype = mtype.decode().rstrip(', ')
if not mtype in self.offsets:
self.counts[mtype] = 0
self.offsets[mtype] = []
Expand Down

0 comments on commit 88e7e46

Please sign in to comment.