Pull requests

#33 Merged
Repository
kiwi
Branch
2.4x
Repository
mchaput
Branch
2.4x

IntraWordFilter: fix uninitialized var when mergewords=True mergenums=False

Author
  1. kiwi
Reviewers
Description
  File "…/whoosh/src/whoosh/analysis.py", line 1359, in _merge
    or (this == last == 2 and mergenums)):
UnboundLocalError: local variable 'this' referenced before assignment

I got this when using mergewords=True and mergenums=False with tokens like "abc123". The patch appear to work fine but I didn't test it thoroughly. I hope this time the pull request is right.

  • Learn about pull requests

Comments (2)