[spambayes-bugs] [ spambayes-Bugs-824629 ] python 2.2 compatibility
SourceForge.net
noreply at sourceforge.net
Thu Oct 16 03:36:38 EDT 2003
Bugs item #824629, was opened at 2003-10-16 07:36
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=824629&group_id=61702
Category: hammie
Group: Source code 1.0a6
Status: Open
Resolution: None
Priority: 5
Submitted By: Janne Sinkkonen (janne)
Assigned to: Nobody/Anonymous (nobody)
Summary: python 2.2 compatibility
Initial Comment:
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.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=824629&group_id=61702
More information about the Spambayes-bugs
mailing list