[Python-modules-team] Bug#985017: python3-whoosh: SyntaxWarning during package installation

Imre Jonk imre at ciphermail.com
Fri Sep 17 11:34:47 BST 2021


This issue also affects users of mailman3-web. The warning is issued
when running the hourly cronjob:

$ sudo -u www-data flock -n /var/run/mailman3-web/cron.hourly
/usr/share/mailman3-web/manage.py runjobs hourly
/usr/lib/python3/dist-packages/haystack/backends/whoosh_backend.py:734:
SyntaxWarning: "is" with a literal. Did you mean "=="?
  if value is None or len(value) is 0:
/usr/lib/python3/dist-packages/whoosh/codec/whoosh3.py:1116:
SyntaxWarning: "is" with a literal. Did you mean "=="?
  elif fixedsize is 0:

Both issues can be fixed by replacing "is" with "==" on the respective
lines.

Imre
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/python-modules-team/attachments/20210917/ff33827e/attachment.sig>


More information about the Python-modules-team mailing list