[spambayes-bugs] [ spambayes-Bugs-824629 ] python 2.2 compatibility

SourceForge.net noreply at sourceforge.net
Thu Oct 16 17:34:15 EDT 2003


Bugs item #824629, was opened at 2003-10-16 20:36
Message generated for change (Comment added) made by anadelonbrin
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: Closed
>Resolution: Duplicate
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. 
 

----------------------------------------------------------------------

Comment By: Tony Meyer (anadelonbrin)
Date: 2003-10-17 10:34

Message:
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.

----------------------------------------------------------------------

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