mchaput / whoosh

Pure-Python full-text search library
Other
569 stars 69 forks source link

codec/whoosh3.py:1116: SyntaxWarning: "is" with a literal. Did you mean "=="? #20

Closed pkolmann closed 2 years ago

pkolmann commented 2 years ago

Hi,

we stumbled across this issue after updating to Debian Bullseye and I see it is still in this repo:

https://github.com/mchaput/whoosh/blob/5421f1ab3bb802114105b3181b7ce4f44ad7d0bb/src/whoosh/codec/whoosh3.py#L1120

shouldn't that be elif fixedsize == 0:

Thanks Philipp

gioboske commented 2 years ago

I think this is closed by d9a3fa2.

pkolmann commented 2 years ago

Thanks for fixing.