--- dbf/_index.py.orig 2022-03-15 19:06:56 UTC +++ dbf/_index.py @@ -9,8 +9,8 @@ class IndexFile(object): filename += '.pdx' if not os.path.exists(filename): self.index_file = open(filename, 'r+b') - self.index_file.write('\xea\xaf\x37\xbf' # signature - '\x00'*8 # two non-existant lists + self.index_file.write('\xea\xaf\x37\xbf', # signature + '\x00'*8, # two non-existant lists '\x00'*500) # and no indices return index_file = self.index_file = open(filename, 'r+b')