A Bug Fix on _IndexFile.keys()
Brought to you by:
oliversteele
Output misses the first key since rewind function skips
the first index line as well.
Add the following lines at the end of rewind():
key = line.split(' ', 1)[0]
return key.replace('_', ' ')
inside keys():
else part becomes:
keys = []
keys.append(self.rewind())
Done.
Ergun