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 authored and peterbarker committed Jan 23, 2024
1 parent 58924dc commit bec27ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DFReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -1147,8 +1147,8 @@ 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]
# convert to string and cut if there is a ','
mtype = mtype.decode().split(',')[0]
if not mtype in self.offsets:
self.counts[mtype] = 0
self.offsets[mtype] = []
Expand Down

0 comments on commit bec27ba

Please sign in to comment.