Commits

Matt Chaput committed 339530c

Corrected attribute name. Fixes issue #262. Thanks Roger!

Comments (0)

Files changed (1)

src/whoosh/codec/legacy.py

         if postingsize == 0:
             return [None] * self.count
         else:
-            offset = self.dataoffset + self.idslen + self.weightslen
+            offset = self.dataoffset + self.idslen + self.wtslen
             self.postfile.seek(offset)
             string = self.postfile.read(self.nextoffset - offset)
             return deminimize_values(postingsize, self.count, string, self.cmp)