I tried to run spambayes 1.0a6 with python 2.2 and observed the
following:
- The trick for True and False as written at the beginning of
many files does not work. python 2.2 complains of a name error
with False,
after trapping the name error with True. This works, of course:
try:
True
except NameError:
# Maintain compatibility with Python 2.2
True, False = 1, 0
- I needed to add the trick to sb_filter.py and to Options.py,
classifier.py, hammie.py, and storage.py to get sb_filter to work.
Logged In: YES
user_id=552329
Thanks for your report. This bug has previously been reported,
and has already been fixed in the source-code (i.e. in CVS) - so
you can expect to see the fix in the next release.
You may wish to subscribe to the spambayes-announce list to see
when each version is released - details at
http://mail.python.org/mailman/listinfo/spambayes-announce
If you are technically minded, you may like to run from the CVS
version of the source-code, and you should find the fix
immediately - see the main SpamBayes pages for details.