[Bug 234717] Review Request: python-spambayes - Bayesian anti-spam filter

bugzilla at redhat.com bugzilla at redhat.com
Thu Apr 5 18:38:05 UTC 2007


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug report.

Summary: Review Request: python-spambayes - Bayesian anti-spam filter
Alias: spambayes

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=234717


trond.danielsen at fedoraproject.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |trond.danielsen at fedoraprojec
                   |                            |t.org




------- Additional Comments From trond.danielsen at fedoraproject.org  2007-04-05 14:38 EST -------
During byte compiling I get errors like this:

-----
  File "/usr/lib/python2.5/site-packages/spambayes/Corpus.py", line 81
SyntaxError: ('from __future__ imports must occur at the beginning of the file',
('/usr/lib/python2.5/site-packages/spambayes
/Corpus.py', 81, None, None))
-----

It might not be a problem, but I fixed it by removing the line that tries to
import __future__ since it is no longer needed. I added this line to the %prep
section:

-----
# Fixes warnings during byte compiling.
sed -i "s/from __future__ import generators//" spambayes/*.py
-----

I've tested it and it builds in mock on rawhide i386. I've also tested building
it on fc6 x86_64. No problems so far.


-- 
Configure bugmail: https://bugzilla.redhat.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.




More information about the package-review mailing list