Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#985017: python3-whoosh: SyntaxWarning during package installation

1 view
Skip to first unread message

Andreas Beckmann

unread,
Mar 11, 2021, 3:50:03 PM3/11/21
to
Package: python3-whoosh
Version: 2.7.4+git6-g9134ad92-5
Severity: important
User: debi...@lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package emits a SyntaxWarning
during installation:

Setting up python3-whoosh (2.7.4+git6-g9134ad92-5) ...
/usr/lib/python3/dist-packages/whoosh/codec/whoosh3.py:1116: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif fixedsize is 0:


Andreas

Imre Jonk

unread,
Sep 17, 2021, 6:50:04 AM9/17/21
to
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
signature.asc

Norbert Preining

unread,
Jun 12, 2023, 3:10:04 AM6/12/23
to
Package: python3-whoosh
Version: 2.7.4+git6-g9134ad92-7
Followup-For: Bug #985017

Dear Maintainer,

same here, and since this module is used in mailman3-web and run every hour,
cron emails are sent out.

Thanks

Norbert

-- System Information:
Debian Release: 12.0
APT prefers stable-security
APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-9-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-whoosh depends on:
ii python3 3.11.2-1+b1

python3-whoosh recommends no packages.

Versions of packages python3-whoosh suggests:
pn python-whoosh-doc <none>

-- no debconf information

AJ Jordan

unread,
Jan 3, 2024, 4:40:05 PMJan 3
to
0 new messages