Package: spambayes
Version: 1.0.4-5.1
Followup-For: Bug #476274
The ``sb_imapfilter.py`` script belonging to the version Lenny/Stable does
still suffer from the misplaced ``from __future__ import generators``
error::
$ sb_imapfilter.py --help
File "/usr/bin/sb_imapfilter.py", line 89
from __future__ import generators
SyntaxError: from __future__ imports must occur at the beginning of the file
Simply moving the statement right after the docstring fixes the issue.
This fix is already applied in Spambayes' trunk.
It looks like Python 2.5 is pickier with the placement of future
statements. That's the reason why it worked under 2.4 but not under 2.5.
-- System Information:
Debian Release: 5.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.18.8-linode16 (SMP w/4 CPU cores)
Locale: LANG=ca_ES.UTF-8, LC_CTYPE=ca_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages spambayes depends on:
ii python 2.5.2-3 An interactive high-level object-o
ii python-central 0.6.8 register and build utility for Pyt
spambayes recommends no packages.
spambayes suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]